summaryrefslogtreecommitdiffstats
path: root/fs/exofs/inode.c
diff options
context:
space:
mode:
authorAl Viro2016-08-30 02:56:35 +0200
committerAl Viro2016-12-10 20:25:18 +0100
commit77469c3f570e329acb631c5c03780eacdca2a534 (patch)
tree56f89cbfd95a55f5d750710d9ca950bf8992fdf1 /fs/exofs/inode.c
parentfix gfs2_stuffed_write_end() on short copies (diff)
downloadkernel-qcow2-linux-77469c3f570e329acb631c5c03780eacdca2a534.tar.gz
kernel-qcow2-linux-77469c3f570e329acb631c5c03780eacdca2a534.tar.xz
kernel-qcow2-linux-77469c3f570e329acb631c5c03780eacdca2a534.zip
9p: saner ->write_end() on failing copy into non-uptodate page
If we had a short copy into an uptodate page, there's no reason whatsoever to zero anything; OTOH, if that page had _not_ been uptodate, we must have been trying to overwrite it completely and got a short copy. In that case, overwriting the end with zeroes, marking uptodate and sending to server is just plain wrong. Just unlock, keep it non-uptodate and return 0. Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/exofs/inode.c')
0 files changed, 0 insertions, 0 deletions