f2fs: fix to tag gcing flag on page during block migration
authorChao Yu <chao@kernel.org>
Sun, 10 Dec 2023 11:35:42 +0000 (19:35 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Mon, 11 Dec 2023 21:38:40 +0000 (13:38 -0800)
commit4961acdd65c956e97c1a000c82d91a8c1cdbe44b
treefcfe8835d60c1d2330164a5b2cb81eeb75bda9e7
parent87f3afd366f7c668be0269efda8a89741a3ea6b3
f2fs: fix to tag gcing flag on page during block migration

It needs to add missing gcing flag on page during block migration,
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.

Similar issue was fixed by commit 2d1fe8a86bf5 ("f2fs: fix to tag
gcing flag on page during file defragment").

Signed-off-by: Chao Yu <chao@kernel.org>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/compress.c
fs/f2fs/file.c