blk-wbt: rename __wbt_update_limits to wbt_update_limits
Now let's rename __wbt_update_limits to wbt_update_limits after the previous one is deleted. Signed-off-by: Guoqing Jiang <guoqing.jiang@cloud.ionos.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
26e0ca12e0
commit
4d89e1d112
|
@ -405,7 +405,7 @@ static void wb_timer_fn(struct blk_stat_callback *cb)
|
||||||
rwb_arm_timer(rwb);
|
rwb_arm_timer(rwb);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void __wbt_update_limits(struct rq_wb *rwb)
|
static void wbt_update_limits(struct rq_wb *rwb)
|
||||||
{
|
{
|
||||||
struct rq_depth *rqd = &rwb->rq_depth;
|
struct rq_depth *rqd = &rwb->rq_depth;
|
||||||
|
|
||||||
|
@ -433,7 +433,7 @@ void wbt_set_min_lat(struct request_queue *q, u64 val)
|
||||||
return;
|
return;
|
||||||
RQWB(rqos)->min_lat_nsec = val;
|
RQWB(rqos)->min_lat_nsec = val;
|
||||||
RQWB(rqos)->enable_state = WBT_STATE_ON_MANUAL;
|
RQWB(rqos)->enable_state = WBT_STATE_ON_MANUAL;
|
||||||
__wbt_update_limits(RQWB(rqos));
|
wbt_update_limits(RQWB(rqos));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -677,7 +677,7 @@ static int wbt_data_dir(const struct request *rq)
|
||||||
static void wbt_queue_depth_changed(struct rq_qos *rqos)
|
static void wbt_queue_depth_changed(struct rq_qos *rqos)
|
||||||
{
|
{
|
||||||
RQWB(rqos)->rq_depth.queue_depth = blk_queue_depth(rqos->q);
|
RQWB(rqos)->rq_depth.queue_depth = blk_queue_depth(rqos->q);
|
||||||
__wbt_update_limits(RQWB(rqos));
|
wbt_update_limits(RQWB(rqos));
|
||||||
}
|
}
|
||||||
|
|
||||||
static void wbt_exit(struct rq_qos *rqos)
|
static void wbt_exit(struct rq_qos *rqos)
|
||||||
|
@ -835,7 +835,7 @@ int wbt_init(struct request_queue *q)
|
||||||
rwb->enable_state = WBT_STATE_ON_DEFAULT;
|
rwb->enable_state = WBT_STATE_ON_DEFAULT;
|
||||||
rwb->wc = 1;
|
rwb->wc = 1;
|
||||||
rwb->rq_depth.default_depth = RWB_DEF_DEPTH;
|
rwb->rq_depth.default_depth = RWB_DEF_DEPTH;
|
||||||
__wbt_update_limits(rwb);
|
wbt_update_limits(rwb);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Assign rwb and add the stats callback.
|
* Assign rwb and add the stats callback.
|
||||||
|
|
Loading…
Reference in New Issue