Skip to content

Commit

Permalink
f2fs: don't do checkpoint if error is occurred
Browse files Browse the repository at this point in the history
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: Jaegeuk Kim <jaegeuk.kim@samsung.com>
  • Loading branch information
Jaegeuk Kim committed May 28, 2013
1 parent 45856af commit 2c2c149
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion fs/f2fs/recovery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 2c2c149

Please sign in to comment.