ext4: unify the ext4 super block loading operation
authorJason Yan <yanaijie@huawei.com>
Fri, 16 Sep 2022 14:15:25 +0000 (22:15 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 1 Oct 2022 03:46:53 +0000 (23:46 -0400)
commita7a79c292ac3776bed20d575a96194181a397125
tree082441c37f62ff4ddccbae8402af0316f9ebd635
parenta5991e539c9a4be0bdec2e427d833196339ec7c6
ext4: unify the ext4 super block loading operation

Now we load the super block from the disk in two steps. First we load
the super block with the default block size(EXT4_MIN_BLOCK_SIZE). Second
we load the super block with the real block size. The second step is a
little far from the first step. This patch move these two steps together
in a new function.

Signed-off-by: Jason Yan <yanaijie@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20220916141527.1012715-15-yanaijie@huawei.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/super.c