summaryrefslogtreecommitdiff
path: root/fs/f2fs
diff options
context:
space:
mode:
authorChao Yu <chao@kernel.org>2022-05-27 12:13:30 +0800
committerJaegeuk Kim <jaegeuk@kernel.org>2022-05-27 13:58:42 -0700
commit2d1fe8a86bf5e0663866fd0da83c2af1e1b0e362 (patch)
tree6b4074ec0cbdbe3f38d104ffd6365dd570e638b7 /fs/f2fs
parent054cb2891b9cc21bf08fb6380e638c056748098f (diff)
f2fs: fix to tag gcing flag on page during file defragment
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>
Diffstat (limited to 'fs/f2fs')
-rw-r--r--fs/f2fs/file.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c
index 0297a4431540..35e99d197adb 100644
--- a/fs/f2fs/file.c
+++ b/fs/f2fs/file.c
@@ -2602,6 +2602,7 @@ do_map:
}
set_page_dirty(page);
+ set_page_private_gcing(page);
f2fs_put_page(page, 1);
idx++;