mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-23 15:44:22 +00:00
blk: wbt: remove unused parameter from wbt_should_throttle
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>
This commit is contained in:
parent
767630c63b
commit
482e302a61
1 changed files with 2 additions and 2 deletions
|
@ -518,7 +518,7 @@ static void __wbt_wait(struct rq_wb *rwb, enum wbt_flags wb_acct,
|
||||||
rq_qos_wait(rqw, &data, wbt_inflight_cb, wbt_cleanup_cb);
|
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)) {
|
switch (bio_op(bio)) {
|
||||||
case REQ_OP_WRITE:
|
case REQ_OP_WRITE:
|
||||||
|
@ -545,7 +545,7 @@ static enum wbt_flags bio_to_wbt_flags(struct rq_wb *rwb, struct bio *bio)
|
||||||
|
|
||||||
if (bio_op(bio) == REQ_OP_READ) {
|
if (bio_op(bio) == REQ_OP_READ) {
|
||||||
flags = WBT_READ;
|
flags = WBT_READ;
|
||||||
} else if (wbt_should_throttle(rwb, bio)) {
|
} else if (wbt_should_throttle(bio)) {
|
||||||
if (current_is_kswapd())
|
if (current_is_kswapd())
|
||||||
flags |= WBT_KSWAPD;
|
flags |= WBT_KSWAPD;
|
||||||
if (bio_op(bio) == REQ_OP_DISCARD)
|
if (bio_op(bio) == REQ_OP_DISCARD)
|
||||||
|
|
Loading…
Add table
Reference in a new issue