diff options
author | Christoph Hellwig <hch@lst.de> | 2017-10-01 17:58:54 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2017-10-01 17:58:54 -0400 |
commit | 545052e9e35a34af95d2e870ac3fe2894376e6e9 (patch) | |
tree | 5025a6020a1674d2234b1dba7b64d8fb3445b58c /fs/ext4/ext4.h | |
parent | 7046ae35329f6d3cd39ae22d96d9525e45e748f2 (diff) | |
download | linux-stable-545052e9e35a34af95d2e870ac3fe2894376e6e9.tar.gz linux-stable-545052e9e35a34af95d2e870ac3fe2894376e6e9.tar.bz2 linux-stable-545052e9e35a34af95d2e870ac3fe2894376e6e9.zip |
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]
Diffstat (limited to 'fs/ext4/ext4.h')
-rw-r--r-- | fs/ext4/ext4.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/ext4/ext4.h b/fs/ext4/ext4.h index ae3e4a25821a..6fd1fe7456eb 100644 --- a/fs/ext4/ext4.h +++ b/fs/ext4/ext4.h @@ -2515,9 +2515,6 @@ extern void ext4_da_update_reserve_space(struct inode *inode, int used, int quota_claim); extern int ext4_issue_zeroout(struct inode *inode, ext4_lblk_t lblk, ext4_fsblk_t pblk, ext4_lblk_t len); -extern int ext4_get_next_extent(struct inode *inode, ext4_lblk_t lblk, - unsigned int map_len, - struct extent_status *result); /* indirect.c */ extern int ext4_ind_map_blocks(handle_t *handle, struct inode *inode, |