nilfs2: use setup_bdev_super to de-duplicate the mount code
authorChristoph Hellwig <hch@lst.de>
Wed, 2 Aug 2023 15:41:21 +0000 (17:41 +0200)
committerChristian Brauner <brauner@kernel.org>
Thu, 10 Aug 2023 08:34:56 +0000 (10:34 +0200)
commitc1e012ea9e835f81ac6062e8aa9e72940a671b95
tree238070bdde2052106f757669632ddbcc3933dde2
parentcf6da236c27a73ab91b657232cd3841aab27c37a
nilfs2: use setup_bdev_super to de-duplicate the mount code

Use the generic setup_bdev_super helper to open the main block device
and do various bits of superblock setup instead of duplicating the
logic.  This includes moving to the new scheme implemented in common
code that only opens the block device after the superblock has allocated.

It does not yet convert nilfs2 to the new mount API, but doing so will
become a bit simpler after this first step.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Ryusuke Konishi <konishi.ryusuke@gmail.com>
Message-Id: <20230802154131.2221419-3-hch@lst.de>
Signed-off-by: Christian Brauner <brauner@kernel.org>
fs/nilfs2/super.c