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

Commit 2c2c149f authored by Jaegeuk Kim's avatar Jaegeuk Kim
Browse files

f2fs: don't do checkpoint if error is occurred



If we met an error during the dentry recovery, we should not conduct checkpoint.
Otherwise, some errorneous dentry blocks overwrites the existing blocks that
contain the remaining recovery information.

Signed-off-by: default avatarJaegeuk Kim <jaegeuk.kim@samsung.com>
parent 45856aff
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -403,6 +403,7 @@ int recover_fsync_data(struct f2fs_sb_info *sbi)
	destroy_fsync_dnodes(sbi, &inode_list);
	destroy_fsync_dnodes(sbi, &inode_list);
	kmem_cache_destroy(fsync_entry_slab);
	kmem_cache_destroy(fsync_entry_slab);
	sbi->por_doing = 0;
	sbi->por_doing = 0;
	if (!err)
		write_checkpoint(sbi, false);
		write_checkpoint(sbi, false);
	return err;
	return err;
}
}