ext2: cleanup the dax handling in ext2_fill_super
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:53 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:53 +0000 (08:58 -0800)
commitcea845cdef4f5094f0471a6dbdb609c004ad8b06
tree5eef9e3134aa118f8489b54249cc7dc5afdfa5e7
parentc6f40468657d16e4010ef84bf32a761feb3469ea
ext2: cleanup the dax handling in ext2_fill_super

Only call fs_dax_get_by_bdev once the sbi has been allocated and remove
the need for the dax_dev local variable.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20211129102203.2243509-20-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/ext2/super.c