dax: Use new dax zero page method for zeroing a page
authorVivek Goyal <vgoyal@redhat.com>
Fri, 28 Feb 2020 16:34:55 +0000 (11:34 -0500)
committerDan Williams <dan.j.williams@intel.com>
Fri, 3 Apr 2020 02:15:03 +0000 (19:15 -0700)
commit0a23f9ffa5ac20d3c95a6e850f4ee68e4034f781
tree60d1e8e0819b3fb1c58ef8992794e1ba526873f0
parentcdf6cdcd3b99a99ea9ecc1b05d1d040d5a69a134
dax: Use new dax zero page method for zeroing a page

Use new dax native zero page method for zeroing page if I/O is page
aligned. Otherwise fall back to direct_access() + memcpy().

This gets rid of one of the depenendency on block device in dax path.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Link: https://lore.kernel.org/r/20200228163456.1587-6-vgoyal@redhat.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/dax.c