]> git.baikalelectronics.ru Git - kernel.git/commit
filesystem-dax: fix broken __dax_zero_page_range() conversion
authorDan Williams <dan.j.williams@intel.com>
Thu, 11 May 2017 02:38:13 +0000 (19:38 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 11 May 2017 04:46:55 +0000 (21:46 -0700)
commite8b50852c6dc3928fa03e878dd5291b6b7f12701
tree5cfe0788dff1536475ce68c9c2241327e545d8b3
parent7134bd9aee2fb513d98d8b012ab37b67f740d9ff
filesystem-dax: fix broken __dax_zero_page_range() conversion

The conversion of __dax_zero_page_range() to 'struct dax_operations'
caused it to frequently fail. The mistake was treating the @size
parameter as a dax mapping length rather than just a length of the
clear_pmem() operation. The dax mapping length is assumed to be hard
coded as PAGE_SIZE.

Without this fix any page unaligned zeroing request will trigger a
-EINVAL return from bdev_dax_pgoff().

Cc: Jan Kara <jack@suse.com>
Cc: Christoph Hellwig <hch@lst.de>
Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Tested-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Fixes: d3d097939229 ("filesystem-dax: convert to dax_direct_access()")
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
fs/dax.c