fsck.f2fs: fix to check c.fix_on before repair
authorChao Yu <yuchao0@huawei.com>
Mon, 12 Aug 2019 11:45:25 +0000 (19:45 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Tue, 27 Aug 2019 21:51:05 +0000 (14:51 -0700)
commitb3c986cf6750a06de2c331faa106b329309403f8
tree49cc13cd1f4c6a2c7ebf4c48525c9a7b9612eac4
parentab72bb1a42bf3db5800707263aab23a64fd0c77a
fsck.f2fs: fix to check c.fix_on before repair

We should always set c.bug_on whenever found a bug, then fix them
if c.fix_on is on, otherwise, some bugs won't be shown unless we
enable debug log.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fsck/fsck.c