Lines Matching refs:stat
264 static inline bool stat_sample_valid(struct blk_rq_stat *stat) in stat_sample_valid() argument
272 return (stat[READ].nr_samples >= 1 && in stat_sample_valid()
273 stat[WRITE].nr_samples >= RWB_MIN_WRITE_SAMPLES); in stat_sample_valid()
304 static int latency_exceeded(struct rq_wb *rwb, struct blk_rq_stat *stat) in latency_exceeded() argument
321 (thislat > rwb->min_lat_nsec && !stat[READ].nr_samples)) { in latency_exceeded()
329 if (!stat_sample_valid(stat)) { in latency_exceeded()
336 if (stat[WRITE].nr_samples || wb_recent_wait(rwb) || in latency_exceeded()
345 if (stat[READ].min > rwb->min_lat_nsec) { in latency_exceeded()
346 trace_wbt_lat(bdi, stat[READ].min); in latency_exceeded()
347 trace_wbt_stat(bdi, stat); in latency_exceeded()
352 trace_wbt_stat(bdi, stat); in latency_exceeded()
432 status = latency_exceeded(rwb, cb->stat); in wb_timer_fn()