diff options
author | Darrick J. Wong <djwong@kernel.org> | 2021-08-10 01:31:14 +0200 |
---|---|---|
committer | Darrick J. Wong <djwong@kernel.org> | 2021-08-19 03:46:00 +0200 |
commit | 54406764c6a6ce6d7468934e09f0463e4e05433b (patch) | |
tree | c18806432cdd4838aac22f17738b92ddd634b8fb /fs/xfs/scrub/common.c | |
parent | xfs: make fsmap backend function key parameters const (diff) | |
download | linux-54406764c6a6ce6d7468934e09f0463e4e05433b.tar.xz linux-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.c | 3 |
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; } /* |