From: Jaegeuk Kim Date: Mon, 20 May 2013 05:48:49 +0000 (+0900) Subject: f2fs: don't do checkpoint if error is occurred X-Git-Tag: upstream/snapshot3+hdmi~4852^2~39 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2c2c149f7dabd5a4d41cae5d2c2ce1d130acf72c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git 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: Jaegeuk Kim --- diff --git a/fs/f2fs/recovery.c b/fs/f2fs/recovery.c index 3a4b51c..5148d90 100644 --- a/fs/f2fs/recovery.c +++ b/fs/f2fs/recovery.c @@ -403,6 +403,7 @@ out: 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; }