Searched refs:rw (Results 1 – 4 of 4) sorted by relevance
299 static uint64_t tg_bps_limit(struct throtl_grp *tg, int rw) in tg_bps_limit() argument309 ret = tg->bps[rw][td->limit_index]; in tg_bps_limit()313 tg->iops[rw][td->limit_index]) in tg_bps_limit()319 if (td->limit_index == LIMIT_MAX && tg->bps[rw][LIMIT_LOW] && in tg_bps_limit()320 tg->bps[rw][LIMIT_LOW] != tg->bps[rw][LIMIT_MAX]) { in tg_bps_limit()323 adjusted = throtl_adjusted_limit(tg->bps[rw][LIMIT_LOW], td); in tg_bps_limit()324 ret = min(tg->bps[rw][LIMIT_MAX], adjusted); in tg_bps_limit()329 static unsigned int tg_iops_limit(struct throtl_grp *tg, int rw) in tg_iops_limit() argument339 ret = tg->iops[rw][td->limit_index]; in tg_iops_limit()343 tg->bps[rw][td->limit_index]) in tg_iops_limit()[all …]
454 static inline unsigned int get_limit(struct rq_wb *rwb, unsigned long rw) in get_limit() argument465 if ((rw & REQ_OP_MASK) == REQ_OP_DISCARD) in get_limit()476 if ((rw & REQ_HIPRIO) || wb_recent_wait(rwb) || current_is_kswapd()) in get_limit()478 else if ((rw & REQ_BACKGROUND) || close_io(rwb)) { in get_limit()493 unsigned long rw; member499 return rq_wait_inc_below(rqw, get_limit(data->rwb, data->rw)); in wbt_inflight_cb()513 unsigned long rw) in __wbt_wait() argument519 .rw = rw, in __wbt_wait()
1582 int cpu, rw; in ioc_lat_stat() local1588 for (rw = READ; rw <= WRITE; rw++) { in ioc_lat_stat()1589 u32 this_met = local_read(&stat->missed[rw].nr_met); in ioc_lat_stat()1590 u32 this_missed = local_read(&stat->missed[rw].nr_missed); in ioc_lat_stat()1592 nr_met[rw] += this_met - stat->missed[rw].last_met; in ioc_lat_stat()1593 nr_missed[rw] += this_missed - stat->missed[rw].last_missed; in ioc_lat_stat()1594 stat->missed[rw].last_met = this_met; in ioc_lat_stat()1595 stat->missed[rw].last_missed = this_missed; in ioc_lat_stat()1603 for (rw = READ; rw <= WRITE; rw++) { in ioc_lat_stat()1604 if (nr_met[rw] + nr_missed[rw]) in ioc_lat_stat()[all …]
212 int rw = bio_data_dir(*bio_orig); in __blk_queue_bounce() local250 if (rw == WRITE) { in __blk_queue_bounce()261 if (rw == READ) in __blk_queue_bounce()