summaryrefslogtreecommitdiffstats
path: root/fs/xfs/scrub/common.c
diff options
context:
space:
mode:
authorDarrick J. Wong <djwong@kernel.org>2021-08-09 16:31:14 -0700
committerDarrick J. Wong <djwong@kernel.org>2021-08-18 18:46:00 -0700
commit54406764c6a6ce6d7468934e09f0463e4e05433b (patch)
treec18806432cdd4838aac22f17738b92ddd634b8fb /fs/xfs/scrub/common.c
parent7e1826e05ba62e85fe110939a181c8f0d58c14cf (diff)
downloadlinux-stable-54406764c6a6ce6d7468934e09f0463e4e05433b.tar.gz
linux-stable-54406764c6a6ce6d7468934e09f0463e4e05433b.tar.bz2
linux-stable-54406764c6a6ce6d7468934e09f0463e4e05433b.zip
xfs: remove unnecessary agno variable from struct xchk_ag
Now that we always grab an active reference to a perag structure when dealing with perag metadata, we can remove this unnecessary variable. Signed-off-by: Darrick J. Wong <djwong@kernel.org> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/scrub/common.c')
-rw-r--r--fs/xfs/scrub/common.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/xfs/scrub/common.c b/fs/xfs/scrub/common.c
index 0ef96ed71017..691cf243c2c9 100644
--- a/fs/xfs/scrub/common.c
+++ b/fs/xfs/scrub/common.c
@@ -414,8 +414,6 @@ xchk_ag_read_headers(
if (!sa->pag)
return -ENOENT;
- sa->agno = agno;
-
error = xfs_ialloc_read_agi(mp, sc->tp, agno, &sa->agi_bp);
if (error && want_ag_read_header_failure(sc, XFS_SCRUB_TYPE_AGI))
return error;
@@ -531,7 +529,6 @@ xchk_ag_free(
xfs_perag_put(sa->pag);
sa->pag = NULL;
}
- sa->agno = NULLAGNUMBER;
}
/*