xfs: simplify xfs_rtalloc_query_range
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:37:08 +0000 (15:37 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commitdf8b181f1551581e96076a653cdca43468093c0f
tree0a199b6f5f402c6aa754d532fdcbd26488f5a388
parentfa0fc38b255cc88aef31ff13b5593e27622204e1
xfs: simplify xfs_rtalloc_query_range

There isn't much of a good reason to pass the xfs_rtalloc_rec structures
that describe extents to xfs_rtalloc_query_range as we really just want
a lower and upper bound xfs_rtxnum_t.  Pass the rtxnum directly and
simply the interface.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Signed-off-by: Darrick J. Wong <djwong@kernel.org>
fs/xfs/libxfs/xfs_rtbitmap.c
fs/xfs/libxfs/xfs_rtbitmap.h
fs/xfs/xfs_discard.c
fs/xfs/xfs_fsmap.c