Skip to content

Commit ac58e4f

Browse files
riteshharjanitytso
authored andcommitted
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 <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Ritesh Harjani <[email protected]> Link: https://lore.kernel.org/r/8bbd53bd719d5ccfecafcce93f2bf1d7955a44af.1582880246.git.riteshh@linux.ibm.com Signed-off-by: Theodore Ts'o <[email protected]>
1 parent 2f424a5 commit ac58e4f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/ext4/inode.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3212,7 +3212,7 @@ static sector_t ext4_bmap(struct address_space *mapping, sector_t block)
32123212
return 0;
32133213
}
32143214

3215-
return generic_block_bmap(mapping, block, ext4_get_block);
3215+
return iomap_bmap(mapping, block, &ext4_iomap_ops);
32163216
}
32173217

32183218
static int ext4_readpage(struct file *file, struct page *page)

0 commit comments

Comments
 (0)