Skip to content

Commit 2d1fe8a

Browse files
chaseyuJaegeuk Kim
authored andcommitted
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 <[email protected]> Signed-off-by: Jaegeuk Kim <[email protected]>
1 parent 054cb28 commit 2d1fe8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/f2fs/file.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2602,6 +2602,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi,
26022602
}
26032603

26042604
set_page_dirty(page);
2605+
set_page_private_gcing(page);
26052606
f2fs_put_page(page, 1);
26062607

26072608
idx++;

0 commit comments

Comments
 (0)