ext4: cleanup ext4_get_dev_journal() and ext4_get_journal()
authorZhang Yi <yi.zhang@huawei.com>
Fri, 11 Aug 2023 06:36:09 +0000 (14:36 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 Aug 2023 04:04:20 +0000 (00:04 -0400)
commitbc74e6a38d16d745a9bc28a7e343494019066492
tree1ef197c754fdd2d755d35cfe9dd939ed4f8c6664
parent8e6cf5fbb7b47d337998faab3fcacdceaa547ead
ext4: cleanup ext4_get_dev_journal() and ext4_get_journal()

Factor out a new helper form ext4_get_dev_journal() to get external
journal bdev and check validation of this device, drop ext4_blkdev_get()
helper, and also remove duplicate check of journal feature. It makes
ext4_get_dev_journal() more clear than before.

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