diff options
author | Christoph Hellwig <hch@lst.de> | 2021-11-29 11:22:00 +0100 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-12-04 08:58:54 -0800 |
commit | de2051147771017a61b62c02fd4e883c9b07712d (patch) | |
tree | d34d624dc761687aea694c3a68b443d6fbe35102 /fs/erofs/internal.h | |
parent | cd913c76f489def1a388e3a5b10df94948ede3f5 (diff) | |
download | linux-stable-de2051147771017a61b62c02fd4e883c9b07712d.tar.gz linux-stable-de2051147771017a61b62c02fd4e883c9b07712d.tar.bz2 linux-stable-de2051147771017a61b62c02fd4e883c9b07712d.zip |
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>
Diffstat (limited to 'fs/erofs/internal.h')
-rw-r--r-- | fs/erofs/internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/erofs/internal.h b/fs/erofs/internal.h index c1e65346e9f1..5c2a83876220 100644 --- a/fs/erofs/internal.h +++ b/fs/erofs/internal.h @@ -438,6 +438,7 @@ static inline int z_erofs_map_blocks_iter(struct inode *inode, struct erofs_map_dev { struct block_device *m_bdev; struct dax_device *m_daxdev; + u64 m_dax_part_off; erofs_off_t m_pa; unsigned int m_deviceid; |