diff options
author | Ritesh Harjani <riteshh@linux.ibm.com> | 2020-02-28 12:26:56 +0300 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-03-14 21:43:12 +0300 |
commit | ac58e4fb03f9d111d733a4ad379d06eef3a24705 (patch) | |
tree | 4c16d5f8de3582da18a4ff0fb60c25c32c0e12d6 /fs/ext4 | |
parent | 2f424a5a09a506e1a6ad432e50bca3000a767d5a (diff) | |
download | linux-ac58e4fb03f9d111d733a4ad379d06eef3a24705.tar.xz |
ext4: move ext4 bmap to use iomap infrastructure
ext4_iomap_begin is already implemented which provides ext4_map_blocks,
so just move the API from generic_block_bmap to iomap_bmap for iomap
conversion.
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Ritesh Harjani <riteshh@linux.ibm.com>
Link: https://lore.kernel.org/r/8bbd53bd719d5ccfecafcce93f2bf1d7955a44af.1582880246.git.riteshh@linux.ibm.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index db3ba140351e..07ca260b30ab 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3212,7 +3212,7 @@ static sector_t ext4_bmap(struct address_space *mapping, sector_t block) return 0; } - return generic_block_bmap(mapping, block, ext4_get_block); + return iomap_bmap(mapping, block, &ext4_iomap_ops); } static int ext4_readpage(struct file *file, struct page *page) |