mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 02:39:48 +00:00
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>
This commit is contained in:
parent
5c83df2e54
commit
9ce7f9b225
1 changed files with 4 additions and 1 deletions
|
@ -620,8 +620,11 @@ xrep_agfl_update_agf(
|
|||
xfs_force_summary_recalc(sc->mp);
|
||||
|
||||
/* Update the AGF counters. */
|
||||
if (xfs_perag_initialised_agf(sc->sa.pag))
|
||||
if (xfs_perag_initialised_agf(sc->sa.pag)) {
|
||||
sc->sa.pag->pagf_flcount = flcount;
|
||||
clear_bit(XFS_AGSTATE_AGFL_NEEDS_RESET,
|
||||
&sc->sa.pag->pag_opstate);
|
||||
}
|
||||
agf->agf_flfirst = cpu_to_be32(0);
|
||||
agf->agf_flcount = cpu_to_be32(flcount);
|
||||
agf->agf_fllast = cpu_to_be32(flcount - 1);
|
||||
|
|
Loading…
Reference in a new issue