summaryrefslogtreecommitdiff
path: root/fs/f2fs/checkpoint.c
diff options
context:
space:
mode:
authorChao Yu <chao2.yu@samsung.com>2015-07-13 12:43:19 +0300
committerJaegeuk Kim <jaegeuk@kernel.org>2015-08-05 00:09:59 +0300
commit5b3391244d1c89bb4c8e1b4e4916fb4965fb71f9 (patch)
tree3257c7eb4b1976b748c9590d7f5dc90deb93dcc7 /fs/f2fs/checkpoint.c
parentc1c1b58359d45e1a9f236ce5a40d50720c07c70e (diff)
downloadlinux-5b3391244d1c89bb4c8e1b4e4916fb4965fb71f9.tar.xz
f2fs: warm up cold page after mmaped write
With cost-benifit method, background gc will consider old section with fewer valid blocks as candidate victim, these old blocks in section will be treated as cold data, and laterly will be moved into cold segment. But if the gcing page is attached by user through buffered or mmaped write, we should reset the page as non-cold one, because this page may have more opportunity for further updating. So fix to add clearing code for the missed 'mmap' case. Signed-off-by: Chao Yu <chao2.yu@samsung.com> Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/checkpoint.c')
0 files changed, 0 insertions, 0 deletions