Lines Matching defs:limit
131 int inflight, limit;
145 * For discards, our limit is always the background. For writes, if
150 limit = rwb->wb_background;
152 limit = 0;
154 limit = rwb->wb_normal;
157 * Don't wake anyone up if we are above the normal limit.
159 if (inflight && inflight >= limit)
163 int diff = limit - inflight;
453 unsigned int limit;
468 * it's WB_SYNC_ALL writeback, and we'll use the max limit for
470 * the idle limit, or go to normal if we haven't had competing
474 limit = rwb->rq_depth.max_depth;
478 * limit us to half the depth for background writeback.
480 limit = rwb->wb_background;
482 limit = rwb->wb_normal;
484 return limit;
506 * Block if we will exceed our limit, or if we are currently waiting for