f2fs: fix to retry fill_super only if recovery failed
authorChao Yu <yuchao0@huawei.com>
Tue, 19 Feb 2019 08:23:53 +0000 (16:23 +0800)
committerJaegeuk Kim <jaegeuk@kernel.org>
Wed, 13 Mar 2019 01:59:17 +0000 (18:59 -0700)
commitaa2c8c43e4a5c242f5b0331c8b7a941b85f9435a
tree770a3dd298dc739d2b3b1aecdfd21316d54d8993
parentbc73a4b2414f2914fa895747166312b1527a97bb
f2fs: fix to retry fill_super only if recovery failed

With current retry mechanism in f2fs_fill_super, first fill_super
fails due to no memory, then second fill_super runs w/o recovery,
if we succeed, we may lose fsynced data, it doesn't make sense.

Let's retry fill_super only if it occurs non-ENOMEM error during
recovery.

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