Jeff Mahoney 619d5d8a2b [PATCH] reiserfs: reiserfs_file_write() will lose error code when a 0-length write occurs w/ O_SYNC
When an error occurs in reiserfs_file_write before any data is written, and
O_SYNC is set, the return code of generic_osync_write will overwrite the
error code, losing it.

This patch ensures that generic_osync_inode() doesn't run under an error
condition, losing the error.  This duplicates the logic from
generic_file_buffered_write().

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Cc: Chris Mason <mason@suse.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Cc: Alexander Zarochentsev <zam@namesys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-03-25 08:22:51 -08:00
..
2006-03-24 07:33:21 -08:00
2006-03-24 07:33:19 -08:00
2006-01-11 18:42:13 -08:00
2006-03-23 07:38:13 -08:00
2006-03-24 07:33:24 -08:00
2006-01-18 19:20:23 -08:00
2006-03-24 07:33:19 -08:00
2006-03-24 07:33:19 -08:00
2006-03-24 07:33:19 -08:00
2005-11-07 07:54:06 -08:00
2006-01-08 20:13:48 -08:00
2006-01-11 18:42:13 -08:00
2006-01-10 08:01:25 -08:00
2006-03-24 07:33:25 -08:00
2006-03-24 07:33:27 -08:00
2006-03-25 08:22:49 -08:00
2006-01-11 18:42:13 -08:00
2006-01-08 20:12:40 -08:00
2006-03-07 09:16:35 -08:00
2005-10-30 17:37:32 -08:00
2006-03-23 07:38:12 -08:00
2006-01-11 18:42:13 -08:00
2006-01-11 18:42:13 -08:00
2006-03-23 07:38:12 -08:00
2006-03-24 07:33:19 -08:00
2006-03-08 14:03:09 -08:00
2006-03-24 07:33:24 -08:00
2005-11-07 18:18:11 -08:00
2006-03-23 07:38:11 -08:00
2006-03-23 07:38:11 -08:00
2006-02-17 13:59:28 -08:00
2006-03-23 07:38:12 -08:00
2006-02-11 21:41:10 -08:00