jbd2: factor out journal initialization from journal_get_superblock()
authorZhang Yi <yi.zhang@huawei.com>
Wed, 15 Mar 2023 01:31:27 +0000 (09:31 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Jun 2023 23:35:13 +0000 (19:35 -0400)
commit3e5cf02cfa3fa9cc9f568930624faed6d3a53ff4
tree2aa9909709e949bc245ec33e3265e6b125c79044
parent5cf036d4f1489d7ba04b948e415f662521902c30
jbd2: factor out journal initialization from journal_get_superblock()

Current journal_get_superblock() couple journal superblock checking and
partial journal initialization, factor out initialization part from it
to make things clear.

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