]> git.baikalelectronics.ru Git - kernel.git/commitdiff
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)
committerJaegeuk Kim <jaegeuk@kernel.org>
Fri, 27 May 2022 20:58:42 +0000 (13:58 -0700)
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>
fs/f2fs/file.c

index 0297a4431540207474fed75be062ad6c328c590d..35e99d197adb3a445823267350e568806ff7acd1 100644 (file)
@@ -2602,6 +2602,7 @@ do_map:
                        }
 
                        set_page_dirty(page);
+                       set_page_private_gcing(page);
                        f2fs_put_page(page, 1);
 
                        idx++;