OSDN Git Service

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>
Thu, 14 Mar 2019 20:57:38 +0000 (13:57 -0700)
commit9878080f02d67df945dd34fd56cc6b41df002704
treeca03f91209ca6f3ef134760f7786b1d1c9c84878
parent7307334f43684753f9bd4228a126d57cd20d6c1e
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