summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@kernel.org>2016-09-06 11:02:03 -0700
committerJaegeuk Kim <jaegeuk@kernel.org>2016-09-13 13:02:34 -0700
commit649d7df29ca83b2c9e81a4a305a8de8ab02b5e9d (patch)
tree5cd2b805dff2b6659ab15fd2142383ddba8f8aea /Kconfig
parent61e4da1172d18f5277be847a40559eacd3169ce7 (diff)
downloadop-kernel-dev-649d7df29ca83b2c9e81a4a305a8de8ab02b5e9d.zip
op-kernel-dev-649d7df29ca83b2c9e81a4a305a8de8ab02b5e9d.tar.gz
f2fs: fix to set PageUptodate in 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 copied partially afterwards. In such the case, we will lose the remaing region in the page. This patch fixes this by setting PageUptodate in f2fs_write_end as given copied result. In the short copy case, it returns zero to let generic_perform_write retry copying user data again. As a result, f2fs_write_end() works: PageUptodate len copied return retry 1. no 4096 4096 4096 false -> return 4096 2. no 4096 1024 0 true -> goto #1 case 3. yes 2048 2048 2048 false -> return 2048 4. yes 2048 1024 1024 false -> return 1024 Suggested-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud