ext2: use iomap_fiemap to implement ->fiemap
authorChristoph Hellwig <hch@lst.de>
Tue, 20 Jul 2021 13:33:39 +0000 (15:33 +0200)
committerJan Kara <jack@suse.cz>
Tue, 27 Jul 2021 09:00:32 +0000 (11:00 +0200)
commit8b1e7076d26b935af7caec33dee2837c0ad7dbb5
treeabf5064afb1bdb0ac5cd00e42e75ae77f1e075ec
parent9583db2332e3426129612e0ef69f70fbadb6053b
ext2: use iomap_fiemap to implement ->fiemap

Switch from generic_block_fiemap to use the iomap version.  The only
interesting part is that ext2_get_blocks gets confused when being
asked for overly long ranges, so copy over the limit to the inode
size from generic_block_fiemap into ext2_fiemap.

Link: https://lore.kernel.org/r/20210720133341.405438-3-hch@lst.de
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/ext2/Kconfig
fs/ext2/inode.c