f2fs: fix to spread clear_cold_data()
authorChao Yu <yuchao0@huawei.com>
Fri, 27 Jul 2018 10:15:16 +0000 (18:15 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Nov 2019 17:28:35 +0000 (18:28 +0100)
commit02fe0b21739cf99c0b4fa0b71618bf7fa02a6bf4
tree495f5d60895ad36d0d6a0a83702bc75cf778d290
parentda8d6eac99ca3934efe1711dd445102cf057f12d
f2fs: fix to spread clear_cold_data()

[ Upstream commit 2baf07818549c8bb8d7b3437e889b86eab56d38e ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/f2fs/data.c
fs/f2fs/dir.c
fs/f2fs/segment.c