diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-10-15 03:42:02 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-11-15 03:49:15 +0300 |
commit | 6a21586a637e624ae736f94aeb0839f6a1dd0411 (patch) | |
tree | 5ea2533aa069e59df0e2f6893e972c210019791f /drivers/dax | |
parent | 7a862fbbdec665190c5ef298c0c6ec9f3915cf45 (diff) | |
download | linux-6a21586a637e624ae736f94aeb0839f6a1dd0411.tar.xz |
dax: stop requiring a live device for dax_flush()
Now that dax_flush() is no longer a driver callback (commit c3ca015fab6d
"dax: remove the pmem_dax_ops->flush abstraction"), stop requiring the
dax_read_lock() to be held and the device to be alive. This is in
preparation for switching filesystem-dax to store pfns instead of
sectors in the radix.
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax')
-rw-r--r-- | drivers/dax/super.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/dax/super.c b/drivers/dax/super.c index b0cc8117eebe..69329e3954ea 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -273,9 +273,6 @@ EXPORT_SYMBOL_GPL(dax_copy_from_iter); void arch_wb_cache_pmem(void *addr, size_t size); void dax_flush(struct dax_device *dax_dev, void *addr, size_t size) { - if (unlikely(!dax_alive(dax_dev))) - return; - if (unlikely(!test_bit(DAXDEV_WRITE_CACHE, &dax_dev->flags))) return; |