dax: fallback from pmd to pte on error
authorDan Williams <dan.j.williams@intel.com>
Wed, 24 Feb 2016 22:02:06 +0000 (14:02 -0800)
committerVishal Verma <vishal.l.verma@intel.com>
Tue, 17 May 2016 06:44:13 +0000 (00:44 -0600)
commit8b3db9798c689ba2dc509f6ca1a8c7e1c1a3e62a
tree25681acb8dc6cff08eddf61167d1837c305fa570
parenta8078b1fc616da6112eb95f0063cd34531d4ccf0
dax: fallback from pmd to pte on error

In preparation for consulting a badblocks list in pmem_direct_access(),
teach dax_pmd_fault() to fallback rather than fail immediately upon
encountering an error.  The thought being that reducing the span of the
dax request may avoid the error region.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
fs/dax.c