Searched refs:rwb (Results 1 – 2 of 2) sorted by relevance
78 static inline bool rwb_enabled(struct rq_wb *rwb) in rwb_enabled() argument80 return rwb && rwb->enable_state != WBT_STATE_OFF_DEFAULT && in rwb_enabled()81 rwb->wb_normal != 0; in rwb_enabled()84 static void wb_timestamp(struct rq_wb *rwb, unsigned long *var) in wb_timestamp() argument86 if (rwb_enabled(rwb)) { in wb_timestamp()98 static bool wb_recent_wait(struct rq_wb *rwb) in wb_recent_wait() argument100 struct bdi_writeback *wb = &rwb->rqos.q->disk->bdi->wb; in wb_recent_wait()105 static inline struct rq_wait *get_rq_wait(struct rq_wb *rwb, in get_rq_wait() argument109 return &rwb->rq_wait[WBT_RWQ_KSWAPD]; in get_rq_wait()111 return &rwb->rq_wait[WBT_RWQ_DISCARD]; in get_rq_wait()[all …]
78 static inline unsigned int wbt_inflight(struct rq_wb *rwb) in wbt_inflight() argument83 ret += atomic_read(&rwb->rq_wait[i].inflight); in wbt_inflight()