Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e4d67e18 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "f2fs: flush data when enabling checkpoint back"

parents 3bdb0991 24530313
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1731,6 +1731,9 @@ static int f2fs_disable_checkpoint(struct f2fs_sb_info *sbi)

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);