xfs: add a couple of queries to iterate free extents in the rtbitmap
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 28 Mar 2017 21:56:36 +0000 (14:56 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 3 Apr 2017 22:18:17 +0000 (15:18 -0700)
commitfb3c3de2f65c007f3ee50538ea131f5c4603c7bc
tree521081abafe35299f246d9a9498f32a6ee78a43d
parente9a2599a249ed7d31771985aea0e761f5680de64
xfs: add a couple of queries to iterate free extents in the rtbitmap

Add _query_range and _query_all functions to the realtime bitmap
allocator.  These two functions are similar in usage to the btree
functions with the same name and will be used for getfsmap and scrub.

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