diff options
author | Christoph Hellwig <hch@lst.de> | 2019-07-01 17:54:36 -0400 |
---|---|---|
committer | Andreas Gruenbacher <agruenba@redhat.com> | 2019-07-03 08:45:18 -0400 |
commit | 7770c93a46e6d2dc6e7c2172d83f2f5aca947cf7 (patch) | |
tree | 4dc6df5f476093f103642871a3e69825365a95df | |
parent | 378b6cbfb82f2a8bb47ae3b1dac0419b57d84a36 (diff) |
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 <hch@lst.de>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r-- | fs/gfs2/aops.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
697 | return 0; | 697 | return 0; |
698 | 698 | ||
699 | if (!gfs2_is_stuffed(ip)) | 699 | if (!gfs2_is_stuffed(ip)) |
700 | dblock = generic_block_bmap(mapping, lblock, gfs2_block_map); | 700 | dblock = iomap_bmap(mapping, lblock, &gfs2_iomap_ops); |
701 | 701 | ||
702 | gfs2_glock_dq_uninit(&i_gh); | 702 | gfs2_glock_dq_uninit(&i_gh); |
703 | 703 | ||