Lines Matching defs:maxlen

221  * adjusting maxlen downwards doesn't cause us to fail the alignment checks.
237 * Attempt to allocate an extent minlen<=len<=maxlen starting from
238 * bitmap block bbno. If we don't get maxlen then use prod to trim
247 xfs_rtxlen_t maxlen, /* maximum length to allocate */
271 scanlen = xfs_rtallocate_clamp_len(args->rtg, i, maxlen, prod);
297 if (minlen < maxlen) {
316 /* Searched the whole thing & didn't find a maxlen free extent. */
341 * Allocate an extent of length minlen<=len<=maxlen, starting at block
342 * bno. If we don't get maxlen then use prod to trim the length, if given.
351 xfs_rtxlen_t maxlen, /* maximum length to allocate */
363 ASSERT(maxlen % prod == 0);
366 scanlen = xfs_rtallocate_clamp_len(args->rtg, start, maxlen, prod);
400 * Allocate an extent of length minlen<=len<=maxlen, starting as near
401 * to start as possible. If we don't get maxlen then use prod to trim
409 xfs_rtxlen_t maxlen, /* maximum length to allocate */
424 ASSERT(maxlen % prod == 0);
435 error = xfs_rtallocate_extent_exact(args, start, minlen, maxlen, len,
464 min_t(xfs_rtblock_t, maxlen,
556 xfs_rtxlen_t maxlen, /* maximum length to allocate */
581 error = xfs_rtallocate_extent_block(args, i, minlen, maxlen,
598 * Allocate an extent of length minlen<=len<=maxlen, with no position
599 * specified. If we don't get maxlen then use prod to trim
606 xfs_rtxlen_t maxlen, /* maximum length to allocate */
615 ASSERT(maxlen % prod == 0);
616 ASSERT(maxlen != 0);
619 * Loop over all the levels starting with maxlen.
622 * extents starting there that are long enough (>= maxlen).
627 for (l = xfs_highbit32(maxlen); l < args->mp->m_rsumlevels; l++) {
628 error = xfs_rtalloc_sumlevel(args, l, minlen, maxlen, prod, len,
635 * Didn't find any maxlen blocks. Try smaller ones, unless we are
638 if (minlen > --maxlen)
641 ASSERT(maxlen != 0);
644 * Loop over sizes, from maxlen down to minlen.
647 * but make sure the specified minlen/maxlen are in the possible range
650 for (l = xfs_highbit32(maxlen); l >= xfs_highbit32(minlen); l--) {
653 min_t(xfs_rtxlen_t, maxlen, (1 << (l + 1)) - 1),
1884 xfs_rtxlen_t maxlen,
1896 busy = xfs_rtalloc_check_busy(args, start, minlen, maxlen, *len, prod,
1908 trace_xfs_rtalloc_extent_busy(args->rtg, start, minlen, maxlen,
1934 xfs_rtxlen_t maxlen,
1988 start = xfs_rtpick_extent(args.rtg, tp, maxlen);
1991 error = xfs_rtallocate_extent_near(&args, start, minlen, maxlen,
2004 error = xfs_rtallocate_extent_size(&args, minlen, maxlen, &len,
2016 maxlen, &len, prod, &rtx);
2048 xfs_rtxlen_t maxlen,
2075 error = xfs_rtallocate_rtg(tp, rgno, bno_hint, minlen, maxlen,