[Cluster-devel] [GFS2 PATCH 16/18] gfs2: use iomap_bmap instead of generic_block_bmap
Andreas Gruenbacher
agruenba at redhat.com
Tue Jul 9 14:06:55 UTC 2019
From: Christoph Hellwig <hch at lst.de>
No need to indirect through get_blocks and buffer_heads when we can just use
the iomap version.
Signed-off-by: Christoph Hellwig <hch at lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba at redhat.com>
---
fs/gfs2/aops.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/gfs2/aops.c b/fs/gfs2/aops.c
index 8f90d98a0aee..f42048cc5454 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);
--
2.20.1
More information about the Cluster-devel
mailing list