Skip to content

Commit 457a93a

Browse files
Darrick J. Wonggregkh
authored andcommitted
xfs: write the rg superblock when fixing it
commit 9af789f upstream. The rtgroup superblock fixer should write the rtgroup superblock. LOLLM noticed this, oops. :/ Cc: stable@vger.kernel.org # v6.13 Fixes: 1433f8f ("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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent e696ef0 commit 457a93a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

fs/xfs/scrub/rgsuper.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,13 @@ int
8888
xrep_rgsuperblock(
8989
struct xfs_scrub *sc)
9090
{
91+
struct xfs_buf *sb_bp;
92+
9193
ASSERT(rtg_rgno(sc->sr.rtg) == 0);
9294

95+
sb_bp = xfs_trans_getsb(sc->tp);
9396
xfs_log_sb(sc->tp);
97+
xfs_log_rtsb(sc->tp, sb_bp);
9498
return 0;
9599
}
96100
#endif /* CONFIG_XFS_ONLINE_REPAIR */

0 commit comments

Comments
 (0)