summaryrefslogtreecommitdiffstats
path: root/fs/block_dev.c
diff options
context:
space:
mode:
authorAl Viro2015-04-07 16:22:53 +0200
committerAl Viro2015-04-12 04:29:47 +0200
commit0b8def9d6dfa6b2a9a2740cf81d8d2c134688d39 (patch)
treeb9f8769682257d9a8ec4ccb0a3253d021fd68ce8 /fs/block_dev.c
parentcifs: fold cifs_iovec_write() into the only caller (diff)
downloadkernel-qcow2-linux-0b8def9d6dfa6b2a9a2740cf81d8d2c134688d39.tar.gz
kernel-qcow2-linux-0b8def9d6dfa6b2a9a2740cf81d8d2c134688d39.tar.xz
kernel-qcow2-linux-0b8def9d6dfa6b2a9a2740cf81d8d2c134688d39.zip
__generic_file_write_iter: keep ->ki_pos and return value consistent
A side effect worth noting: in O_APPEND case we set ->ki_pos early, so if it turns out to be an error or a zero-length write, we'll end up with ->ki_pos modified. Safe, since all callers never look at the ->ki_pos after the call of __generic_file_write_iter() returning non-positive, all the way to caller of ->write_iter() and those discard ->ki_pos when getting that. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions