/* Return whether there are any free extents in the size range given by low and high, for the bitmap block bbno.  */
STATIC int xfs_rtany_summary(xfs_mount_t *, xfs_trans_t *, int, int, xfs_rtblock_t, xfs_buf_t **, xfs_fsblock_t *, int *)
/* Return whether there are any free extents in the size range given by low and high, for the bitmap block bbno.  */
STATIC int xfs_rtany_summary(xfs_mount_t *, xfs_trans_t *, int, int, xfs_rtblock_t, xfs_buf_t **, xfs_fsblock_t *, int *)
{
	int		error;
	int		log;
	xfs_suminfo_t	sum;
	for (log = low; log <= high; log++) {
		error = xfs_rtget_summary(mp, tp, log, bbno, rbpp, rsb, &sum);
		if (error) {
			return error;
		}
		if (sum) {
			*stat = 1;
			return 0;
		}
	}
	*stat = 0;
	return 0;
}