f2fs: need fsck.f2fs if the recovery was failed
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 3 Sep 2014 00:19:04 +0000 (17:19 -0700)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 9 Sep 2014 20:15:04 +0000 (13:15 -0700)
If the roll-forward recovery was failed, we'd better conduct fsck.f2fs.

Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/super.c

index a6923041f41a93cf5181eef2bf2497ff75296583..3275e733b28eba6093976fa14e80ab77e2235abe 100644 (file)
@@ -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);