9p: set page uptodate when required in write_end()
authorAlexander Levin <alexander.levin@verizon.com>
Mon, 10 Apr 2017 18:46:51 +0000 (18:46 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Oct 2017 16:30:08 +0000 (09:30 -0700)
commit56ae414e9d2718bcbfda9ba3797c39005e2f90fb
tree377636c4a2fa3a6a52e8a04fa88e828ffe5bccea
parenta0db28909ecfcb9e581f567f688929ed38ef3f56
9p: set page uptodate when required in write_end()

Commit 77469c3f570 prevented setting the page as uptodate when we wrote
the right amount of data, fix that.

Fixes: 77469c3f570 ("9p: saner ->write_end() on failing copy into non-uptodate page")
Reviewed-by: Jan Kara <jack@suse.com>
Signed-off-by: Alexander Levin <alexander.levin@verizon.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/9p/vfs_addr.c