Skip to content

Commit 9ce7f9b

Browse files
author
Darrick J. Wong
committed
xfs: clear pagf_agflreset when repairing the AGFL
Clear the pagf_agflreset flag when we're repairing the AGFL because we fix all the same padding problems that xfs_agfl_reset does. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Dave Chinner <dchinner@redhat.com>
1 parent 5c83df2 commit 9ce7f9b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

fs/xfs/scrub/agheader_repair.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,8 +620,11 @@ xrep_agfl_update_agf(
620620
xfs_force_summary_recalc(sc->mp);
621621

622622
/* Update the AGF counters. */
623-
if (xfs_perag_initialised_agf(sc->sa.pag))
623+
if (xfs_perag_initialised_agf(sc->sa.pag)) {
624624
sc->sa.pag->pagf_flcount = flcount;
625+
clear_bit(XFS_AGSTATE_AGFL_NEEDS_RESET,
626+
&sc->sa.pag->pag_opstate);
627+
}
625628
agf->agf_flfirst = cpu_to_be32(0);
626629
agf->agf_flcount = cpu_to_be32(flcount);
627630
agf->agf_fllast = cpu_to_be32(flcount - 1);

0 commit comments

Comments
 (0)