Skip to content

Commit cc2dba0

Browse files
Christoph Hellwigcmaiolino
authored andcommitted
xfs: don't call xfs_bmap_same_rtgroup in xfs_bmap_add_extent_hole_delay
xfs_bmap_add_extent_hole_delay works entirely on delalloc extents, for which xfs_bmap_same_rtgroup doesn't make sense. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Darrick J. Wong <[email protected]> Signed-off-by: Carlos Maiolino <[email protected]>
1 parent 2140935 commit cc2dba0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2620,17 +2620,15 @@ xfs_bmap_add_extent_hole_delay(
26202620
*/
26212621
if ((state & BMAP_LEFT_VALID) && (state & BMAP_LEFT_DELAY) &&
26222622
left.br_startoff + left.br_blockcount == new->br_startoff &&
2623-
left.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
2624-
xfs_bmap_same_rtgroup(ip, whichfork, &left, new))
2623+
left.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN)
26252624
state |= BMAP_LEFT_CONTIG;
26262625

26272626
if ((state & BMAP_RIGHT_VALID) && (state & BMAP_RIGHT_DELAY) &&
26282627
new->br_startoff + new->br_blockcount == right.br_startoff &&
26292628
new->br_blockcount + right.br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
26302629
(!(state & BMAP_LEFT_CONTIG) ||
26312630
(left.br_blockcount + new->br_blockcount +
2632-
right.br_blockcount <= XFS_MAX_BMBT_EXTLEN)) &&
2633-
xfs_bmap_same_rtgroup(ip, whichfork, new, &right))
2631+
right.br_blockcount <= XFS_MAX_BMBT_EXTLEN)))
26342632
state |= BMAP_RIGHT_CONTIG;
26352633

26362634
/*

0 commit comments

Comments
 (0)