ext4: use iomap for zeroing blocks in DAX mode
authorJan Kara <jack@suse.cz>
Sun, 20 Nov 2016 23:08:05 +0000 (18:08 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 20 Nov 2016 23:08:05 +0000 (18:08 -0500)
commit47e6935136b1f9fbda59cd929409f8e7cee4a1e4
tree3b744419d652aaf8b045a742b91300667c00b501
parent364443cbcfe70f927b6a0dc0d410b4d4318bc1ca
ext4: use iomap for zeroing blocks in DAX mode

Use iomap infrastructure for zeroing blocks when in DAX mode.
ext4_iomap_begin() handles read requests just fine and that's all that
is needed for iomap_zero_range().

Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/inode.c