提交 2c2c149f 编写于 作者: J Jaegeuk Kim

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: NJaegeuk Kim <jaegeuk.kim@samsung.com>
上级 45856aff
......@@ -403,6 +403,7 @@ int recover_fsync_data(struct f2fs_sb_info *sbi)
destroy_fsync_dnodes(sbi, &inode_list);
kmem_cache_destroy(fsync_entry_slab);
sbi->por_doing = 0;
write_checkpoint(sbi, false);
if (!err)
write_checkpoint(sbi, false);
return err;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册