f2fs: fix to tag gcing flag on page during file defragment
authorChao Yu <chao@kernel.org>
Fri, 27 May 2022 04:13:30 +0000 (12:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 14 Jun 2022 16:36:15 +0000 (18:36 +0200)
commit21c6ee673401048bbeebf31a74055446464914eb
treebcecd146d956d298b508d6d75d33bd1521b302e9
parentb382115016c88a2356a6aace0091750a2bbb73ba
f2fs: fix to tag gcing flag on page during file defragment

[ Upstream commit 2d1fe8a86bf5e0663866fd0da83c2af1e1b0e362 ]

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>
fs/f2fs/file.c