Re: [PATCH] mm: return ENOBUFS instead of ENOMEM in generic_file_buffered_write

Christoph Hellwig
2005-08-23T11:56:13Z

On Tue, Aug 23, 2005 at 11:46:33AM +0300, Pekka J Enberg wrote:
> As noticed by Dmitry Torokhov, write() can not return ENOMEM:
>
> http://www.opengroup.org/onlinepubs/000095399/functions/write.html
>
> Therefore fixup generic_file_buffered_write() in mm/filemap.c (pointed out by
> Nathan Scott).

We had this discussion before, for EACCESS then. We've always been returning
more errnos than SuS mentioned and Linus declared it's fine.