From b0c44f05a2b719f3ecfa4673c04d80a17bb23e92 Mon Sep 17 00:00:00 2001 From: Jaegeuk Kim Date: Tue, 2 Sep 2014 17:19:04 -0700 Subject: 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 --- fs/f2fs/super.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs/f2fs/super.c') 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); -- cgit v1.2.3