diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2016-09-05 22:06:35 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2016-12-10 14:25:18 -0500 |
commit | 43388b21e72d36204822bcc3119e42abe6ebceef (patch) | |
tree | aa7571d5dac86ec5826a88eb5fc2cf099a8236fc /fs/9p | |
parent | b9de313cf05fe08fa59efaf19756ec5283af672a (diff) | |
download | linux-43388b21e72d36204822bcc3119e42abe6ebceef.tar.bz2 |
fix gfs2_stuffed_write_end() on short copies
a) the page is uptodate - ->write_begin() would either fail (in which
case we don't reach ->write_end()), or unstuff the inode, or find the
page already uptodate, or do a successful call of stuffed_readpage(),
which would've made it uptodate
b) zeroing the tail in pagecache is wrong. kill -9 at the right time
while writing unmodified file contents to the same file should _not_
leave us in a situation when read() from the file will be reporting
it full of zeroes. Especially since that effect will be transient -
at some later point the page will be evicted and then we'll be back
to the real file contents.
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/9p')
0 files changed, 0 insertions, 0 deletions