dax: for truncate/hole-punch, do zeroing through the driver if possible
authorVishal Verma <vishal.l.verma@intel.com>
Thu, 21 Apr 2016 19:13:46 +0000 (15:13 -0400)
committerVishal Verma <vishal.l.verma@intel.com>
Wed, 18 May 2016 18:16:57 +0000 (12:16 -0600)
commit4b0228fa1d753f77fe0e6cf4c41398ec77dfbd2a
tree323a881d26a983060f82477b8391717fa5b10e9d
parent679c8bd3b29428e736eabb7fc66a978f312f0c86
dax: for truncate/hole-punch, do zeroing through the driver if possible

In the truncate or hole-punch path in dax, we clear out sub-page ranges.
If these sub-page ranges are sector aligned and sized, we can do the
zeroing through the driver instead so that error-clearing is handled
automatically.

For sub-sector ranges, we still have to rely on clear_pmem and have the
possibility of tripping over errors.

Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Jeff Moyer <jmoyer@redhat.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Jan Kara <jack@suse.cz>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
Documentation/filesystems/dax.txt
fs/dax.c