Skip to content
Commit e84b83b9 authored by Dan Williams's avatar Dan Williams
Browse files

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: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
Tested-by: default avatarRoss Zwisler <ross.zwisler@linux.intel.com>
Fixes: cccbce67

 ("filesystem-dax: convert to dax_direct_access()")
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent b177fe85
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment