Skip to content

Commit

Permalink
blk-wbt: remove wbt_update_limits
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Guoqing Jiang authored and axboe committed May 29, 2020
1 parent 32e3374 commit 26e0ca1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
8 changes: 0 additions & 8 deletions block/blk-wbt.c
Original file line number Diff line number Diff line change
Expand Up @@ -418,14 +418,6 @@ static void __wbt_update_limits(struct rq_wb *rwb)
rwb_wake_all(rwb);
}

void wbt_update_limits(struct request_queue *q)
{
struct rq_qos *rqos = wbt_rq_qos(q);
if (!rqos)
return;
__wbt_update_limits(RQWB(rqos));
}

u64 wbt_get_min_lat(struct request_queue *q)
{
struct rq_qos *rqos = wbt_rq_qos(q);
Expand Down
4 changes: 0 additions & 4 deletions block/blk-wbt.h
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ static inline unsigned int wbt_inflight(struct rq_wb *rwb)
#ifdef CONFIG_BLK_WBT

int wbt_init(struct request_queue *);
void wbt_update_limits(struct request_queue *);
void wbt_disable_default(struct request_queue *);
void wbt_enable_default(struct request_queue *);

Expand All @@ -108,9 +107,6 @@ static inline int wbt_init(struct request_queue *q)
{
return -EINVAL;
}
static inline void wbt_update_limits(struct request_queue *q)
{
}
static inline void wbt_disable_default(struct request_queue *q)
{
}
Expand Down

0 comments on commit 26e0ca1

Please sign in to comment.