xfs: teach rmapbt to support interval queries
authorDarrick J. Wong <darrick.wong@oracle.com>
Wed, 3 Aug 2016 01:42:39 +0000 (11:42 +1000)
committerDave Chinner <david@fromorbit.com>
Wed, 3 Aug 2016 01:42:39 +0000 (11:42 +1000)
commitc543838a1e00a5f8791e59ae570b1030d70906f2
treee337821e836ea0378d256dd5e598b75f97df14db
parentcfed56ae5f410cd6c1601712a9ed4645b71b170c
xfs: teach rmapbt to support interval queries

Now that the generic btree code supports querying all records within a
range of keys, use that functionality to allow us to ask for all the
extents mapped to a range of physical blocks.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
fs/xfs/libxfs/xfs_rmap.c
fs/xfs/libxfs/xfs_rmap.h