f2fs: fix to set PageUptodate by f2fs_write_end correctly
authorJaegeuk Kim <jaegeuk@kernel.org>
Tue, 6 Sep 2016 18:02:03 +0000 (11:02 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Thu, 8 Sep 2016 01:53:51 +0000 (18:53 -0700)
commit5888e5f8c20a8ddee187d291d9214a3c0ef9330a
tree3b5014fe2d609446441ef1e34f5e4db58ad2b26f
parent68f313935fb205822ed1f923f7833639f3c78573
f2fs: fix to set PageUptodate by f2fs_write_end correctly

Previously, f2fs_write_begin sets PageUptodate all the time. But, when user
tries to update the entire page (i.e., len == PAGE_SIZE), we need to consider
that the page is able to be overwritten partially afterwards.
So, given exact copied variable, f2fs_write_end should handle page's flag
accordingly.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/data.c
This page took 0.025206 seconds and 5 git commands to generate.