]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
xfs: don't call xfs_bmap_same_rtgroup in xfs_bmap_add_extent_hole_delay
authorChristoph Hellwig <hch@lst.de>
Mon, 16 Dec 2024 02:17:26 +0000 (18:17 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Tue, 24 Dec 2024 02:01:31 +0000 (18:01 -0800)
Source kernel commit: cc2dba08cc33daf8acd6e560957ef0e0f4d034ed

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 <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
libxfs/xfs_bmap.c

index 552d292bf354122c4f7e4f56f213838215384b08..16ee7403a75f3bb54de01f42ebb1e7af70122536 100644 (file)
@@ -2614,8 +2614,7 @@ xfs_bmap_add_extent_hole_delay(
         */
        if ((state & BMAP_LEFT_VALID) && (state & BMAP_LEFT_DELAY) &&
            left.br_startoff + left.br_blockcount == new->br_startoff &&
-           left.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
-           xfs_bmap_same_rtgroup(ip, whichfork, &left, new))
+           left.br_blockcount + new->br_blockcount <= XFS_MAX_BMBT_EXTLEN)
                state |= BMAP_LEFT_CONTIG;
 
        if ((state & BMAP_RIGHT_VALID) && (state & BMAP_RIGHT_DELAY) &&
@@ -2623,8 +2622,7 @@ xfs_bmap_add_extent_hole_delay(
            new->br_blockcount + right.br_blockcount <= XFS_MAX_BMBT_EXTLEN &&
            (!(state & BMAP_LEFT_CONTIG) ||
             (left.br_blockcount + new->br_blockcount +
-             right.br_blockcount <= XFS_MAX_BMBT_EXTLEN)) &&
-           xfs_bmap_same_rtgroup(ip, whichfork, new, &right))
+             right.br_blockcount <= XFS_MAX_BMBT_EXTLEN)))
                state |= BMAP_RIGHT_CONTIG;
 
        /*