Skip to content
Commit f765b134 authored by Al Viro's avatar Al Viro
Browse files

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 22c6186e
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment