Lines Matching defs:delay
25 * used to manage discarding with timeout determined by a max of the delay
26 * incurred by the iops rate limit, the byte rate limit, and the max delay of
55 /* This is an initial delay to give some chance for block reuse */
387 u64 delay = discard_ctl->delay_ms * NSEC_PER_MSEC;
400 delay = max(delay, bps_delay);
410 delay = max(delay, bg_timeout);
416 if (delay > elapsed)
417 delay -= elapsed;
419 delay = 0;
423 &discard_ctl->work, nsecs_to_jiffies(delay));
434 * update the current delay as the baseline delay interval is reevaluated on
565 * Recalculate the base delay.
569 * Recalculate the base delay which is based off the total number of
579 unsigned long delay;
611 delay = MSEC_PER_SEC / iops_limit;
615 * delay of 0.
617 delay = 0;
621 delay = clamp(delay, min_delay, BTRFS_DISCARD_MAX_DELAY_MSEC);
622 discard_ctl->delay_ms = delay;