]> git.baikalelectronics.ru Git - kernel.git/commit
new_sync_write(): discard ->ki_pos unless the return value is positive
authorAl Viro <viro@zeniv.linux.org.uk>
Tue, 7 Apr 2015 00:50:38 +0000 (20:50 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sun, 12 Apr 2015 02:29:46 +0000 (22:29 -0400)
commita43adfc1bd5448e64e18458835740f0e472ee0fe
treec4492b1ee9661d40f1e2e2b0e88c9ba369a1162f
parentcbe6773fc40f258ac6d8229777587fa75b35d02d
new_sync_write(): discard ->ki_pos unless the return value is positive

That allows ->write_iter() instances much more convenient life wrt
iocb->ki_pos (and fixes several filesystems with borderline POSIX
violations when zero-length write succeeds and changes the current
position).

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/read_write.c