-
- Downloads
dax: introduce dax_direct_access()
Replace bdev_direct_access() with dax_direct_access() that uses
dax_device and dax_operations instead of a block_device and
block_device_operations for dax. Once all consumers of the old api have
been converted bdev_direct_access() will be deleted.
Given that block device partitioning decisions can cause dax page
alignment constraints to be violated this also introduces the
bdev_dax_pgoff() helper. It handles calculating a logical pgoff relative
to the dax_device and also checks for page alignment.
Signed-off-by:
Dan Williams <dan.j.williams@intel.com>
Showing
- block/Kconfig 1 addition, 0 deletionsblock/Kconfig
- drivers/dax/super.c 39 additions, 0 deletionsdrivers/dax/super.c
- fs/block_dev.c 14 additions, 0 deletionsfs/block_dev.c
- include/linux/blkdev.h 1 addition, 0 deletionsinclude/linux/blkdev.h
- include/linux/dax.h 2 additions, 0 deletionsinclude/linux/dax.h
Loading
Please register or sign in to comment