fsdax: shift partition offset handling into the file systems
authorChristoph Hellwig <hch@lst.de>
Mon, 29 Nov 2021 10:22:00 +0000 (11:22 +0100)
committerDan Williams <dan.j.williams@intel.com>
Sat, 4 Dec 2021 16:58:54 +0000 (08:58 -0800)
commitde2051147771017a61b62c02fd4e883c9b07712d
treed34d624dc761687aea694c3a68b443d6fbe35102
parentcd913c76f489def1a388e3a5b10df94948ede3f5
fsdax: shift partition offset handling into the file systems

Remove the last user of ->bdev in dax.c by requiring the file system to
pass in an address that already includes the DAX offset.  As part of the
only set ->bdev or ->daxdev when actually required in the ->iomap_begin
methods.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Gao Xiang <hsiangkao@linux.alibaba.com> [erofs]
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/20211129102203.2243509-27-hch@lst.de
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/dax.c
fs/erofs/data.c
fs/erofs/internal.h
fs/ext2/inode.c
fs/ext4/inode.c
fs/xfs/xfs_iomap.c