Home
last modified time | relevance | path

Searched refs:rwb (Results 1 – 2 of 2) sorted by relevance

/block/
Dblk-wbt.c78 static inline bool rwb_enabled(struct rq_wb *rwb) in rwb_enabled() argument
80 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() argument
86 if (rwb_enabled(rwb)) { in wb_timestamp()
98 static bool wb_recent_wait(struct rq_wb *rwb) in wb_recent_wait() argument
100 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() argument
109 return &rwb->rq_wait[WBT_RWQ_KSWAPD]; in get_rq_wait()
111 return &rwb->rq_wait[WBT_RWQ_DISCARD]; in get_rq_wait()
[all …]
Dblk-wbt.h78 static inline unsigned int wbt_inflight(struct rq_wb *rwb) in wbt_inflight() argument
83 ret += atomic_read(&rwb->rq_wait[i].inflight); in wbt_inflight()