xfs: don't check agf_btreeblks on pre-lazysbcount filesystems
authorDarrick J. Wong <djwong@kernel.org>
Fri, 23 Apr 2021 23:02:01 +0000 (16:02 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 29 Apr 2021 14:44:18 +0000 (07:44 -0700)
commite6c01077ec2d28fe8b6e0bc79eddea8d788f6ea3
tree70eedeffa079bdab8e6281addcd74a0534dc13fe
parent1aec7c3d05670b92b7339b19999009a93808efb9
xfs: don't check agf_btreeblks on pre-lazysbcount filesystems

The AGF free space btree block counter wasn't added until the
lazysbcount feature was added to XFS midway through the life of the V4
format, so ignore the field when checking.  Online AGF repair requires
rmapbt, so it doesn't need the feature check.

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