xfs: set the scrub AG number in xchk_ag_read_headers
authorDarrick J. Wong <djwong@kernel.org>
Mon, 22 Mar 2021 16:51:53 +0000 (09:51 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 25 Mar 2021 23:47:49 +0000 (16:47 -0700)
commitde9d2a78add1a4c9508be96bad7e29d899e0ff0f
treefb81d7b9b3268b1a1c47ffe6957c01a4855e78f1
parent9de4b514494a3b49fa708186c0dc4611f1fe549c
xfs: set the scrub AG number in xchk_ag_read_headers

Since xchk_ag_read_headers initializes fields in struct xchk_ag, we
might as well set the AG number and save the callers the trouble.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
fs/xfs/scrub/agheader.c
fs/xfs/scrub/common.c
fs/xfs/scrub/common.h