From: Christoph Hellwig Date: Mon, 1 Jul 2019 21:54:36 +0000 (+0200) Subject: gfs2: use iomap_bmap instead of generic_block_bmap X-Git-Tag: v5.3-rc1~146^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=7770c93a46e6d2dc6e7c2172d83f2f5aca947cf7;p=thirdparty%2Fkernel%2Flinux.git gfs2: use iomap_bmap instead of generic_block_bmap No need to indirect through get_blocks and buffer_heads when we can just use the iomap version. Signed-off-by: Christoph Hellwig Signed-off-by: Andreas Gruenbacher --- diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c index 8f90d98a0aeef..f42048cc54549 100644 --- a/fs/gfs2/aops.c +++ b/fs/gfs2/aops.c @@ -697,7 +697,7 @@ static sector_t gfs2_bmap(struct address_space *mapping, sector_t lblock) return 0; if (!gfs2_is_stuffed(ip)) - dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); + dblock = iomap_bmap(mapping, lblock, &gfs2_iomap_ops); gfs2_glock_dq_uninit(&i_gh);