]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6859268aa17156d6d38dcaa0c590f128d2f77d3f
treefb81d7b9b3268b1a1c47ffe6957c01a4855e78f1
parenta9f54a4986ccd369a368dd01420ebb13712ed7c8
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