diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index b3aa350ccdd1..22a7bb8a33eb 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1780,6 +1780,9 @@ restore_flag: static void f2fs_enable_checkpoint(struct f2fs_sb_info *sbi) { + /* we should flush all the data to keep data consistency */ + sync_inodes_sb(sbi->sb); + down_write(&sbi->gc_lock); f2fs_dirty_to_prefree(sbi);