]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
xfs: use the rt version of the cow staging checker
authorDarrick J. Wong <djwong@kernel.org>
Tue, 14 Jul 2026 06:05:26 +0000 (23:05 -0700)
committerCarlos Maiolino <cem@kernel.org>
Tue, 14 Jul 2026 09:01:47 +0000 (11:01 +0200)
LOLLM also noticed that xchk_rtrmapbt_xref ought to be using the rtdev
version of the "is this a cow extent?" helper function, not the datadev
one.

Cc: stable@vger.kernel.org # v6.14
Fixes: 91683bb3f264c0 ("xfs: cross-reference checks with the rt refcount btree")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Assisted-by: LOLLM # finding obvious bugs
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Carlos Maiolino <cem@kernel.org>
fs/xfs/scrub/rtrmap.c

index 043be93c7148844402379e32d137714976a00ae2..b3b2cf17ba2c088563f9a6c0641903511d3db3dc 100644 (file)
@@ -209,7 +209,7 @@ xchk_rtrmapbt_xref(
                        xfs_rgbno_to_rtb(sc->sr.rtg, irec->rm_startblock),
                        irec->rm_blockcount);
        if (irec->rm_owner == XFS_RMAP_OWN_COW)
-               xchk_xref_is_cow_staging(sc, irec->rm_startblock,
+               xchk_xref_is_rt_cow_staging(sc, irec->rm_startblock,
                                irec->rm_blockcount);
        else
                xchk_rtrmapbt_xref_rtrefc(sc, irec);