mirror of
https://github.com/torvalds/linux.git
synced 2026-07-31 19:47:08 +02:00
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:
parent
881f2eb0fc
commit
9af789fa27
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user