dax: enable dax in the presence of known media errors (badblocks)
authorDan Williams <dan.j.williams@intel.com>
Wed, 24 Feb 2016 22:02:11 +0000 (14:02 -0800)
committerVishal Verma <vishal.l.verma@intel.com>
Wed, 18 May 2016 18:16:56 +0000 (12:16 -0600)
commit0a70bd43053331d99881211e1d09f32de531432f
tree1f63c6ece9c22c30a99c19fd91a14dc1556dc7f6
parent8b3db9798c689ba2dc509f6ca1a8c7e1c1a3e62a
dax: enable dax in the presence of known media errors (badblocks)

1/ If a mapping overlaps a bad sector fail the request.

2/ Do not opportunistically report more dax-capable capacity than is
   requested when errors present.

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
[vishal: fix a conflict with system RAM collision patches]
[vishal: add a 'size' parameter to ->direct_access]
[vishal: fix a conflict with DAX alignment check patches]
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
arch/powerpc/sysdev/axonram.c
drivers/block/brd.c
drivers/nvdimm/pmem.c
drivers/s390/block/dcssblk.c
fs/block_dev.c
include/linux/blkdev.h