Lines Matching defs:minlen

214  * Attempt to allocate an extent minlen<=len<=maxlen starting from
223 xfs_rtxlen_t minlen, /* minimum length to allocate */
272 if (minlen < maxlen) {
276 if (thislen >= minlen && thislen > bestlen) {
294 if (minlen > maxlen || besti == -1) {
326 * Allocate an extent of length minlen<=len<=maxlen, starting at block
335 xfs_rtxlen_t minlen, /* minimum length to allocate */
346 ASSERT(minlen % prod == 0);
357 * If not, allocate what there is, if it's at least minlen.
360 if (maxlen < minlen)
368 if (maxlen < minlen)
385 * Allocate an extent of length minlen<=len<=maxlen, starting as near
393 xfs_rtxlen_t minlen, /* minimum length to allocate */
405 int log2len; /* log2 of minlen */
408 ASSERT(minlen % prod == 0);
420 if (maxlen < minlen)
426 error = xfs_rtallocate_extent_exact(args, start, minlen, maxlen, len,
435 ASSERT(minlen != 0);
436 log2len = xfs_highbit32(minlen);
467 bbno + i, minlen, maxavail, len,
502 bbno + j, minlen,
547 xfs_rtxlen_t minlen, /* minimum length to allocate */
573 error = xfs_rtallocate_extent_block(args, i, minlen, maxlen,
590 * Allocate an extent of length minlen<=len<=maxlen, with no position
597 xfs_rtxlen_t minlen, /* minimum length to allocate */
606 ASSERT(minlen % prod == 0);
620 error = xfs_rtalloc_sumlevel(args, l, minlen, maxlen, prod, len,
630 if (minlen > --maxlen)
632 ASSERT(minlen != 0);
636 * Loop over sizes, from maxlen down to minlen.
639 * but make sure the specified minlen/maxlen are in the possible range
642 for (l = xfs_highbit32(maxlen); l >= xfs_highbit32(minlen); l--) {
644 max_t(xfs_rtxlen_t, minlen, 1 << l),
1338 xfs_extlen_t minlen = mp->m_sb.sb_rextsize;
1360 * hint, increase minlen by that amount so that the allocator won't
1365 minlen += orig_offset - ap->offset;
1377 raminlen = max_t(xfs_rtxlen_t, 1, xfs_extlen_to_rtxlen(mp, minlen));
1441 minlen = align = mp->m_sb.sb_rextsize;