Skip to content

Commit

Permalink
f2fs: fix to tag gcing flag on page during file defragment
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
chaseyu authored and Jaegeuk Kim committed May 27, 2022
1 parent 054cb28 commit 2d1fe8a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/f2fs/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -2602,6 +2602,7 @@ static int f2fs_defragment_range(struct f2fs_sb_info *sbi,
}

set_page_dirty(page);
set_page_private_gcing(page);
f2fs_put_page(page, 1);

idx++;
Expand Down

0 comments on commit 2d1fe8a

Please sign in to comment.