summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorLei Chen <lennychen@tencent.com>2021-01-25 19:27:04 +0800
committerJens Axboe <axboe@kernel.dk>2021-01-26 13:13:00 -0700
commit482e302a61f1fc62b0e13be20bc7a11a91b5832d (patch)
treecb4e3b693ef054c99efe2f33d98b22c94fe10314 /block
parent767630c63bb23acf022adb265574996ca39a4645 (diff)
downloadlinux-482e302a61f1fc62b0e13be20bc7a11a91b5832d.tar.bz2
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-wbt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-wbt.c b/block/blk-wbt.c
index 0321ca83e73f..42aed0160f86 100644
--- a/block/blk-wbt.c
+++ b/block/blk-wbt.c
@@ -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);
}
-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:
@@ -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) {
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)