jbd2: cleanup journal_init_common()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 11 Aug 2023 06:36:06 +0000 (14:36 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 15 Aug 2023 13:00:33 +0000 (09:00 -0400)
commit49887e47a5262cc7b87d547de57a21a072c6ea5e
tree857d7fedf3a91e9b08d7af1c8685d9726d2afc8b
parent0dbc759ae9971568af24def1b01d5b1aa87bd546
jbd2: cleanup journal_init_common()

Adjust the initialization sequence and error handle of journal_t, moving
load superblock to the begin, and classify others initialization.

Signed-off-by: Zhang Yi <yi.zhang@huawei.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Link: https://lore.kernel.org/r/20230811063610.2980059-9-yi.zhang@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/jbd2/journal.c