diff mbox series

[2/6] blk-iolatency: delete changed variable

Message ID 20180910204932.14323-3-josef@toxicpanda.com (mailing list archive)
State New, archived
Headers show
Series blk-iolatency: Fixes and tweak the miss algo for ssds | expand

Commit Message

Josef Bacik Sept. 10, 2018, 8:49 p.m. UTC
This was from a previous iteration when we returned whether or not we
changed the scale.  It is unused so remove it.

Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
 block/blk-iolatency.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/block/blk-iolatency.c b/block/blk-iolatency.c
index 9b8d2012ea88..8f32aa1817f8 100644
--- a/block/blk-iolatency.c
+++ b/block/blk-iolatency.c
@@ -298,7 +298,6 @@  static void scale_change(struct iolatency_grp *iolat, bool up)
 	unsigned long qd = iolat->blkiolat->rqos.q->nr_requests;
 	unsigned long scale = scale_amount(qd, up);
 	unsigned long old = iolat->rq_depth.max_depth;
-	bool changed = false;
 
 	if (old > qd)
 		old = qd;
@@ -308,7 +307,6 @@  static void scale_change(struct iolatency_grp *iolat, bool up)
 			return;
 
 		if (old < qd) {
-			changed = true;
 			old += scale;
 			old = min(old, qd);
 			iolat->rq_depth.max_depth = old;
@@ -316,7 +314,6 @@  static void scale_change(struct iolatency_grp *iolat, bool up)
 		}
 	} else if (old > 1) {
 		old >>= 1;
-		changed = true;
 		iolat->rq_depth.max_depth = max(old, 1UL);
 	}
 }