summaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMatthias Kaehlcke <mka@chromium.org>2017-05-26 14:22:37 -0700
committerJens Axboe <axboe@fb.com>2017-05-30 09:49:44 -0600
commit03ea8ad78cfb2910862c8dfcd2a627fc04097db2 (patch)
treec2fcead9f0031a8732a249fb045d5f270927fb5c /block
parent685c9b24ad5090e7a74781c4784fc12e0a04a176 (diff)
cfq-iosched: Delete unused function min_vdisktime()
This fixes the following warning when building with clang: block/cfq-iosched.c:970:19: error: unused function 'min_vdisktime' [-Werror,-Wunused-function] Signed-off-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block')
-rw-r--r--block/cfq-iosched.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/block/cfq-iosched.c b/block/cfq-iosched.c
index da69b079725f..f57bc7d5c483 100644
--- a/block/cfq-iosched.c
+++ b/block/cfq-iosched.c
@@ -978,15 +978,6 @@ static inline u64 max_vdisktime(u64 min_vdisktime, u64 vdisktime)
return min_vdisktime;
}
-static inline u64 min_vdisktime(u64 min_vdisktime, u64 vdisktime)
-{
- s64 delta = (s64)(vdisktime - min_vdisktime);
- if (delta < 0)
- min_vdisktime = vdisktime;
-
- return min_vdisktime;
-}
-
static void update_min_vdisktime(struct cfq_rb_root *st)
{
struct cfq_group *cfqg;