dax: use sb_issue_zerout instead of calling dax_clear_sectors
authorMatthew Wilcox <matthew.r.wilcox@intel.com>
Tue, 15 Mar 2016 17:20:41 +0000 (11:20 -0600)
committerVishal Verma <vishal.l.verma@intel.com>
Wed, 18 May 2016 18:16:56 +0000 (12:16 -0600)
commit3dc29161070ab14d065554c0ad58988ab77a7bfd
tree946408d640e9d41e47df15b1515332a230d80f78
parent0a70bd43053331d99881211e1d09f32de531432f
dax: use sb_issue_zerout instead of calling dax_clear_sectors

dax_clear_sectors() cannot handle poisoned blocks.  These must be
zeroed using the BIO interface instead.  Convert ext2 and XFS to use
only sb_issue_zerout().

Reviewed-by: Jeff Moyer <jmoyer@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
[vishal: Also remove the dax_clear_sectors function entirely]
Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
fs/dax.c
fs/ext2/inode.c
fs/xfs/xfs_bmap_util.c
include/linux/dax.h