staging: erofs: kill all failure handling in fill_super()
authorGao Xiang <gaoxiang25@huawei.com>
Wed, 31 Jul 2019 15:57:41 +0000 (23:57 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Aug 2019 11:52:05 +0000 (13:52 +0200)
commit8f7acdae2cd4b843d1fcb49e449cc7860556e3ef
tree8d8c116e47eeb57b32b5693d5f11a091e23295a3
parent9e794de573d7d54e3742628227e585bd90acc38a
staging: erofs: kill all failure handling in fill_super()

.kill_sb() will do that instead in order to remove duplicated code.

Note that the initialzation of managed_cache is now moved
after s_root is assigned since it's more preferred to iput()
in .put_super() and all inodes should be evicted before
the end of generic_shutdown_super(sb).

Suggested-by: Al Viro <viro@zeniv.linux.org.uk>
Reviewed-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Gao Xiang <gaoxiang25@huawei.com>
Link: https://lore.kernel.org/r/20190731155752.210602-12-gaoxiang25@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/erofs/super.c