xfs: don't track the AGFL buffer in the scrub AG context
authorDarrick J. Wong <djwong@kernel.org>
Mon, 7 Nov 2022 01:03:14 +0000 (17:03 -0800)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 16 Nov 2022 23:25:01 +0000 (15:25 -0800)
commitbe1317fdb8d4e3ccbac43e199b360c248c600d99
treef2ac735edfb6e0c7cb26473ae9beb19d7457c0ae
parent9a48b4a6fd512bdaed7e38ba844be743163d49c6
xfs: don't track the AGFL buffer in the scrub AG context

While scrubbing an allocation group, we don't need to hold the AGFL
buffer as part of the scrub context.  All that is necessary to lock an
AG is to hold the AGI and AGF buffers, so fix all the existing users of
the AGFL buffer to grab them only when necessary.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/scrub/agheader.c
fs/xfs/scrub/agheader_repair.c
fs/xfs/scrub/common.c
fs/xfs/scrub/repair.c
fs/xfs/scrub/scrub.h