]> git.baikalelectronics.ru Git - kernel.git/commit
aio: partial write should not return error code
authorRusty Russell <rusty@rustcorp.com.au>
Fri, 8 Feb 2008 12:20:14 +0000 (04:20 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:33 +0000 (09:22 -0800)
commitee61463922533d236f36dbb052a0b8935973df80
tree8a312d527e25142c65eec3bf9360cfbaae4c2666
parent19e5737132a97b16d593742678ba801ab14aad53
aio: partial write should not return error code

When an AIO write gets an error after writing some data (eg.  ENOSPC), it
should return the amount written already, not the error.  Just like write()
is supposed to.

This was found by the libaio test suite.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Acked-By: Zach Brown <zach.brown@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/aio.c