xfs: write the rg superblock when fixing it

The rtgroup superblock fixer should write the rtgroup superblock.
LOLLM noticed this, oops. :/

Cc: stable@vger.kernel.org # v6.13
Fixes: 1433f8f9ce ("xfs: repair realtime group superblock")
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>
This commit is contained in:
Darrick J. Wong 2026-07-13 23:05:41 -07:00 committed by Carlos Maiolino
parent 881f2eb0fc
commit 9af789fa27

View File

@ -80,9 +80,13 @@ int
xrep_rgsuperblock(
struct xfs_scrub *sc)
{
struct xfs_buf *sb_bp;
ASSERT(rtg_rgno(sc->sr.rtg) == 0);
sb_bp = xfs_trans_getsb(sc->tp);
xfs_log_sb(sc->tp);
xfs_log_rtsb(sc->tp, sb_bp);
return 0;
}
#endif /* CONFIG_XFS_ONLINE_REPAIR */