ext4: Switch to iomap for SEEK_HOLE / SEEK_DATA
authorChristoph Hellwig <hch@lst.de>
Sun, 1 Oct 2017 21:58:54 +0000 (17:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 1 Oct 2017 21:58:54 +0000 (17:58 -0400)
commit545052e9e35a34af95d2e870ac3fe2894376e6e9
tree5025a6020a1674d2234b1dba7b64d8fb3445b58c
parent7046ae35329f6d3cd39ae22d96d9525e45e748f2
ext4: Switch to iomap for SEEK_HOLE / SEEK_DATA

Switch to the iomap_seek_hole and iomap_seek_data helpers for
implementing lseek SEEK_HOLE / SEEK_DATA, and remove all the code that
isn't needed any more.

Note that with this patch ext4 will now always depend on the iomap code
instead of only when CONFIG_DAX is enabled, and it requires adding a
call into the extent status tree for iomap_begin as well to properly
deal with delalloc extents.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
[More fixes and cleanups by Andreas]
fs/ext4/Kconfig
fs/ext4/ext4.h
fs/ext4/file.c
fs/ext4/inode.c