xfs: count free space btree blocks when scrubbing pre-lazysbcount fses
authorDarrick J. Wong <djwong@kernel.org>
Tue, 27 Apr 2021 02:06:58 +0000 (19:06 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Thu, 29 Apr 2021 14:44:19 +0000 (07:44 -0700)
commite147a756ab263f9d10eafd08b79b9fac1b08e56c
tree7324580aa6626c9a22aac5f7787e716e0480789b
parent6543990a168acf366f4b6174d7bd46ba15a8a2a6
xfs: count free space btree blocks when scrubbing pre-lazysbcount fses

Since agf_btreeblks didn't exist before the lazysbcount feature, the fs
summary count scrubber needs to walk the free space btrees to determine
the amount of space being used by those btrees.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Reviewed-by: Gao Xiang <hsiangkao@redhat.com>
fs/xfs/scrub/fscounters.c