Lines Matching refs:qd
50 * REQ_META or REQ_SWAP. If we are already at qd == 1 and we're getting a lot
315 static inline unsigned long scale_amount(unsigned long qd, bool up)
317 return max(up ? qd >> SCALE_UP_FACTOR : qd >> SCALE_DOWN_FACTOR, 1UL);
321 * We scale the qd down faster than we scale up, so we need to use this helper
333 unsigned long qd = blkiolat->rqos.disk->queue->nr_requests;
334 unsigned long scale = scale_amount(qd, up);
336 unsigned long max_scale = qd << 1;
346 else if (diff > qd)
357 if (diff > qd) {
375 unsigned long qd = iolat->blkiolat->rqos.disk->queue->nr_requests;
376 unsigned long scale = scale_amount(qd, up);
379 if (old > qd)
380 old = qd;
386 if (old < qd) {
388 old = min(old, qd);