summaryrefslogtreecommitdiff
path: root/block/blk-wbt.h
diff options
context:
space:
mode:
Diffstat (limited to 'block/blk-wbt.h')
-rw-r--r--block/blk-wbt.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/block/blk-wbt.h b/block/blk-wbt.h
index df6de50c5d59..e7c086374e20 100644
--- a/block/blk-wbt.h
+++ b/block/blk-wbt.h
@@ -96,16 +96,6 @@ struct rq_wb {
struct rq_wait rq_wait[WBT_NUM_RWQ];
};
-static inline unsigned int wbt_inflight(struct rq_wb *rwb)
-{
- unsigned int i, ret = 0;
-
- for (i = 0; i < WBT_NUM_RWQ; i++)
- ret += atomic_read(&rwb->rq_wait[i].inflight);
-
- return ret;
-}
-
#ifdef CONFIG_BLK_WBT
void __wbt_done(struct rq_wb *, enum wbt_flags);