xfs: assert a valid limit in xfs_rtfind_forw
authorChristoph Hellwig <hch@lst.de>
Fri, 30 Aug 2024 22:36:54 +0000 (15:36 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Sun, 1 Sep 2024 15:58:19 +0000 (08:58 -0700)
commit6d2db12d56a389b3e8efa236976f8dc3a8ae00f0
treedb5628131d90072aedaa5f4c8a11615e8a0c63f6
parent119c65e56bc131b466a7cd958a4089e286ce3c4b
xfs: assert a valid limit in xfs_rtfind_forw

Protect against developers passing stupid limits when refactoring the
RT code once again.

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