]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
xfs: rtsummary scrub should treat rtbitmap corruption errors as an xref error
authorDarrick J. Wong <djwong@kernel.org>
Tue, 21 Jul 2026 03:24:17 +0000 (20:24 -0700)
committerCarlos Maiolino <cem@kernel.org>
Wed, 22 Jul 2026 13:06:25 +0000 (15:06 +0200)
LOLLM notes the discrepancy between the comment saying that this is an
xref error and the code, which marks a (non-xref) corruption error.
This appears to be a regression.

Cc: stable@vger.kernel.org # v6.13
Fixes: e3088ae2dcae3c ("xfs: move RT bitmap and summary information to the rtgroup")
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/rtsummary.c

index 78f72a0468870e2c5593ace805556c6a5fe726bf..546b335ade1354acff9cbb82571555c43fbaab84 100644 (file)
@@ -358,7 +358,7 @@ xchk_rtsummary(
                 * EFSCORRUPTED means the rtbitmap is corrupt, which is an xref
                 * error since we're checking the summary file.
                 */
-               xchk_ip_set_corrupt(sc, rbmip);
+               xchk_ip_xref_set_corrupt(sc, rbmip);
                return 0;
        }
        if (error)