f2fs: fix to tag gcing flag on page during file defragment

[ Upstream commit 2d1fe8a86b ]

In order to garantee migrated data be persisted during checkpoint,
otherwise out-of-order persistency between data and node may cause
data corruption after SPOR.

Signed-off-by: Chao Yu <chao.yu@oppo.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Chao Yu 2022-05-27 12:13:30 +08:00 committed by Greg Kroah-Hartman
parent 10cdbc54a8
commit 9f5f8f850f
1 changed files with 1 additions and 0 deletions

View File

@ -2679,6 +2679,7 @@ do_map:
}
set_page_dirty(page);
set_page_private_gcing(page);
f2fs_put_page(page, 1);
idx++;