ext4: cleanup the dax handling in ext4_fill_super
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:54 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:53 +0000 (08:58 -0800)
commit89b93a7b15f75d04ed579baeb4d941e8ce7634c8
tree353a01b7374a035727515b84bef92a72cec4d826
parentcea845cdef4f5094f0471a6dbdb609c004ad8b06
ext4: cleanup the dax handling in ext4_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-21-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/ext4/super.c