commit | f765b134c0d3f294f6084d3e0a11de184059a387 | [log] [tgz] |
---|---|---|
author | Al Viro <viro@zeniv.linux.org.uk> | Mon Apr 06 20:50:38 2015 -0400 |
committer | Al Viro <viro@zeniv.linux.org.uk> | Sat Apr 11 22:29:46 2015 -0400 |
tree | c4492b1ee9661d40f1e2e2b0e88c9ba369a1162f | |
parent | 22c6186ecea0be9eff1c399298ad36e94a59995f [diff] |
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>