diff options
author | Chao Yu <yuchao0@huawei.com> | 2018-07-27 13:15:16 +0300 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2018-10-23 03:54:46 +0300 |
commit | 2baf07818549c8bb8d7b3437e889b86eab56d38e (patch) | |
tree | be4aeece55742d8544b77783e2b9ea7ec77ddb31 /fs/f2fs/segment.c | |
parent | 164a63fa6b384e30ceb96ed80bc7dc3379bc0960 (diff) | |
download | linux-2baf07818549c8bb8d7b3437e889b86eab56d38e.tar.xz |
f2fs: fix to spread clear_cold_data()
We need to drop PG_checked flag on page as well when we clear PG_uptodate
flag, in order to avoid treating the page as GCing one later.
Signed-off-by: Weichao Guo <guoweichao@huawei.com>
Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/segment.c')
-rw-r--r-- | fs/f2fs/segment.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/f2fs/segment.c b/fs/f2fs/segment.c index 805c8310d7b0..e38b2f69b68e 100644 --- a/fs/f2fs/segment.c +++ b/fs/f2fs/segment.c @@ -266,8 +266,10 @@ retry: } next: /* we don't need to invalidate this in the sccessful status */ - if (drop || recover) + if (drop || recover) { ClearPageUptodate(page); + clear_cold_data(page); + } set_page_private(page, 0); ClearPagePrivate(page); f2fs_put_page(page, 1); |