The first parameter rwb is not used for this function.
So just remove it.
Signed-off-by: Lei Chen <lennychen@tencent.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
        rq_qos_wait(rqw, &data, wbt_inflight_cb, wbt_cleanup_cb);
 }
 
-static inline bool wbt_should_throttle(struct rq_wb *rwb, struct bio *bio)
+static inline bool wbt_should_throttle(struct bio *bio)
 {
        switch (bio_op(bio)) {
        case REQ_OP_WRITE:
 
        if (bio_op(bio) == REQ_OP_READ) {
                flags = WBT_READ;
-       } else if (wbt_should_throttle(rwb, bio)) {
+       } else if (wbt_should_throttle(bio)) {
                if (current_is_kswapd())
                        flags |= WBT_KSWAPD;
                if (bio_op(bio) == REQ_OP_DISCARD)