diff options
author | Dan Williams <dan.j.williams@intel.com> | 2017-06-27 23:06:22 +0300 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2017-06-28 02:44:27 +0300 |
commit | 5d61e43b3975c0582003329d9de9d5e85abf5d33 (patch) | |
tree | 259546b1a8fd2b8cf50d40698edfaeebdb241e00 /drivers/dax/super.c | |
parent | c9e582aa689f5418ca30e1e7a975039772c3a757 (diff) | |
download | linux-5d61e43b3975c0582003329d9de9d5e85abf5d33.tar.xz |
dax: remove default copy_from_iter fallback
Require all dax-drivers to register a ->copy_from_iter() operation so
that it is clear which dax_operations are optional and which must be
implemented for filesystem-dax to operate.
Cc: Gerald Schaefer <gerald.schaefer@de.ibm.com>
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/dax/super.c')
-rw-r--r-- | drivers/dax/super.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/dax/super.c b/drivers/dax/super.c index b7729e4d351a..9e0160b950d7 100644 --- a/drivers/dax/super.c +++ b/drivers/dax/super.c @@ -179,8 +179,6 @@ size_t dax_copy_from_iter(struct dax_device *dax_dev, pgoff_t pgoff, void *addr, if (!dax_alive(dax_dev)) return 0; - if (!dax_dev->ops->copy_from_iter) - return copy_from_iter(addr, bytes, i); return dax_dev->ops->copy_from_iter(dax_dev, pgoff, addr, bytes, i); } EXPORT_SYMBOL_GPL(dax_copy_from_iter); |