diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-01-27 16:31:42 -0500 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-04-25 16:20:46 -0400 |
commit | cccbce67158290537cc671cbd4c1564876485a65 (patch) | |
tree | 659d4b28303c16f05c9a99b05e574a81e8842629 /fs/iomap.c | |
parent | a41fe02b6bba853a29c864d00fd161bbe6cfc715 (diff) |
filesystem-dax: convert to dax_direct_access()
Now that a dax_device is plumbed through all dax-capable drivers we can
switch from block_device_operations to dax_operations for invoking
->direct_access.
This also lets us kill off some usages of struct blk_dax_ctl on the way
to its eventual removal.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'fs/iomap.c')
-rw-r--r-- | fs/iomap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/iomap.c b/fs/iomap.c index 141c3cd55a8b..4ec0d6ac8bc1 100644 --- a/fs/iomap.c +++ b/fs/iomap.c | |||
@@ -360,7 +360,8 @@ static int iomap_dax_zero(loff_t pos, unsigned offset, unsigned bytes, | |||
360 | sector_t sector = iomap->blkno + | 360 | sector_t sector = iomap->blkno + |
361 | (((pos & ~(PAGE_SIZE - 1)) - iomap->offset) >> 9); | 361 | (((pos & ~(PAGE_SIZE - 1)) - iomap->offset) >> 9); |
362 | 362 | ||
363 | return __dax_zero_page_range(iomap->bdev, sector, offset, bytes); | 363 | return __dax_zero_page_range(iomap->bdev, iomap->dax_dev, sector, |
364 | offset, bytes); | ||
364 | } | 365 | } |
365 | 366 | ||
366 | static loff_t | 367 | static loff_t |