xfs: strengthen rtalloc query range checks
authorDarrick J. Wong <darrick.wong@oracle.com>
Thu, 31 May 2018 16:07:21 +0000 (09:07 -0700)
committerDarrick J. Wong <darrick.wong@oracle.com>
Fri, 1 Jun 2018 16:00:16 +0000 (09:00 -0700)
commit8ad560d2565e64b8be0cf5901c1e8fe034ac5599
treea137e6d45738351525fba7e4852d55721214e88b
parenta03f1641c7a6d4e88c6aae0cd3d52305cdb967a0
xfs: strengthen rtalloc query range checks

Strengthen the rtalloc range query checks to make sure that the keys do
not run off the end of the realtime device inappropriately.  Note that
the query range functions require units of rt extents, not blocks,
despite the type name.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Allison Henderson <allison.henderson@oracle.com>
Reviewed-by: Bill O'Donnell <billodo@redhat.com>
fs/xfs/libxfs/xfs_rtbitmap.c