Skip to content

Commit 26e0ca1

Browse files
Guoqing Jiangaxboe
authored andcommitted
blk-wbt: remove wbt_update_limits
No one call this function after commit 2af2783 ("rq-qos: get rid of redundant wbt_update_limits()"), so remove it. Signed-off-by: Guoqing Jiang <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
1 parent 32e3374 commit 26e0ca1

File tree

2 files changed

+0
-12
lines changed

2 files changed

+0
-12
lines changed

block/blk-wbt.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -418,14 +418,6 @@ static void __wbt_update_limits(struct rq_wb *rwb)
418418
rwb_wake_all(rwb);
419419
}
420420

421-
void wbt_update_limits(struct request_queue *q)
422-
{
423-
struct rq_qos *rqos = wbt_rq_qos(q);
424-
if (!rqos)
425-
return;
426-
__wbt_update_limits(RQWB(rqos));
427-
}
428-
429421
u64 wbt_get_min_lat(struct request_queue *q)
430422
{
431423
struct rq_qos *rqos = wbt_rq_qos(q);

block/blk-wbt.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ static inline unsigned int wbt_inflight(struct rq_wb *rwb)
8888
#ifdef CONFIG_BLK_WBT
8989

9090
int wbt_init(struct request_queue *);
91-
void wbt_update_limits(struct request_queue *);
9291
void wbt_disable_default(struct request_queue *);
9392
void wbt_enable_default(struct request_queue *);
9493

@@ -108,9 +107,6 @@ static inline int wbt_init(struct request_queue *q)
108107
{
109108
return -EINVAL;
110109
}
111-
static inline void wbt_update_limits(struct request_queue *q)
112-
{
113-
}
114110
static inline void wbt_disable_default(struct request_queue *q)
115111
{
116112
}

0 commit comments

Comments
 (0)