From: Jaegeuk Kim Date: Wed, 3 Sep 2014 00:19:04 +0000 (-0700) Subject: f2fs: need fsck.f2fs if the recovery was failed X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=b0c44f05a2b719f3ecfa4673c04d80a17bb23e92;p=linux-beck.git f2fs: need fsck.f2fs if the recovery was failed If the roll-forward recovery was failed, we'd better conduct fsck.f2fs. Signed-off-by: Jaegeuk Kim --- diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index a6923041f41a..3275e733b28e 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1083,6 +1083,9 @@ try_onemore: if (err) goto free_proc; + if (!retry) + sbi->need_fsck = true; + /* recover fsynced data */ if (!test_opt(sbi, DISABLE_ROLL_FORWARD)) { err = recover_fsync_data(sbi);