dax: return the partition offset from fs_dax_get_by_bdev
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:21:59 +0000 (11:21 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:54 +0000 (08:58 -0800)
commitcd913c76f489def1a388e3a5b10df94948ede3f5
treed144a96b23dd0ea4064702c2f5e06d4fe6258680
parent952da06375c8f3aa58474fff718d9ae8442531b9
dax: return the partition offset from fs_dax_get_by_bdev

Prepare for the removal of the block_device from the DAX I/O path by
returning the partition offset from fs_dax_get_by_bdev so that the file
systems have it at hand for use during I/O.

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-26-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/super.c
drivers/md/dm.c
fs/erofs/internal.h
fs/erofs/super.c
fs/ext2/ext2.h
fs/ext2/super.c
fs/ext4/ext4.h
fs/ext4/super.c
fs/xfs/xfs_buf.c
fs/xfs/xfs_buf.h
include/linux/dax.h