xfs: refactor refcount record usage in xchk_refcountbt_rec
authorDarrick J. Wong <djwong@kernel.org>
Tue, 11 Oct 2022 18:22:54 +0000 (11:22 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Mon, 31 Oct 2022 15:58:21 +0000 (08:58 -0700)
commit5a8c345ca8b99a9f54b89991f2f6a20521cb05f4
treead49fec213a15d7c9b073c846ba2ca2c84e2940e
parent9e7e2436c159490fbbadbc4b5a4ee6bc30dae02e
xfs: refactor refcount record usage in xchk_refcountbt_rec

Consolidate the open-coded xfs_refcount_irec fields into an actual
struct and use the existing _btrec_to_irec to decode the ondisk record.
This will reduce code churn in the next patch.

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