Skip to content

Commit

Permalink
gfs2: use iomap_bmap instead of generic_block_bmap
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Christoph Hellwig authored and Andreas Gruenbacher committed Jul 3, 2019
1 parent 378b6cb commit 7770c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/gfs2/aops.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7770c93

Please sign in to comment.