]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove cantfind_ext4 error handler
authorJason Yan <yanaijie@huawei.com>
Fri, 16 Sep 2022 14:15:13 +0000 (22:15 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 1 Oct 2022 03:46:52 +0000 (23:46 -0400)
commited81085629ca91db9c78646dff1a5d9bf01276b5
treeec1db1de49301959b8dbcb3efca993faed1f7f3c
parent7e6afe685be109455dde989e77ffc614feababcb
ext4: remove cantfind_ext4 error handler

The 'cantfind_ext4' error handler is just a error msg print and then
goto failed_mount. This two level goto makes the code complex and not
easy to read. The only benefit is that is saves a little bit code.
However some branches can merge and some branches dot not even need it.
So do some refactor and remove it.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com>
Link: https://lore.kernel.org/r/20220916141527.1012715-3-yanaijie@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c