diff options
author | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-09-02 17:19:04 -0700 |
---|---|---|
committer | Jaegeuk Kim <jaegeuk@kernel.org> | 2014-09-09 13:15:04 -0700 |
commit | b0c44f05a2b719f3ecfa4673c04d80a17bb23e92 (patch) | |
tree | 8e4d7eee92da21577ab5791df894d1533bc918c7 /fs/f2fs/super.c | |
parent | ec325b5270cd3ba01bce299d1ede1616f31813ea (diff) | |
download | linux-b0c44f05a2b719f3ecfa4673c04d80a17bb23e92.tar.bz2 |
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 <jaegeuk@kernel.org>
Diffstat (limited to 'fs/f2fs/super.c')
-rw-r--r-- | fs/f2fs/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |