xfs: have getfsmap fall back to the freesp btrees when rmap is not present
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 28 Mar 2017 21:56:37 +0000 (14:56 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Apr 2017 22:18:18 +0000 (15:18 -0700)
commita1cae7283d4627a96d092ee7a1f821eb4d9ce7f9
tree30c928ac2d717b95873a3ecc3cd590037e310433
parente89c041338ed6ef2694e6465ca1ba033e0a2978c
xfs: have getfsmap fall back to the freesp btrees when rmap is not present

If the reverse-mapping btree isn't available, fall back to the
free space btrees to provide partial reverse mapping information.
The online scrub tool can make use of even partial information to
speed up the data block scan.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
fs/xfs/xfs_fsmap.c