f2fs: return error during fill_super
authorJaegeuk Kim <jaegeuk@kernel.org>
Wed, 20 Dec 2017 03:16:34 +0000 (19:16 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:09:21 +0000 (13:09 +0200)
commit2ab95e71c8a592cb798e0059dd26a900c6e290a2
tree24d01ea15c856bf1d4470025a7191182f65e9549
parent270d5d77191769eaa57f94eff3ef8119121a091a
f2fs: return error during fill_super

commit c39a1b348c4fe172729eff77c533dabc3c7cdaa7 upstream.

Let's avoid BUG_ON during fill_super, when on-disk was totall corrupted.

Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/f2fs/segment.c
fs/f2fs/segment.h