blk-mq: move the cache friendly bitmap type of out blk-mq-tag
[deliverable/linux.git] / block / blk-mq-tag.h
index 7aa9f06654898e8f0b1e7ffdc96ef907aeb6fa4f..9014269f39104152392d5fbf12f308757b1ef219 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef INT_BLK_MQ_TAG_H
 #define INT_BLK_MQ_TAG_H
 
+#include "blk-mq.h"
+
 enum {
        BT_WAIT_QUEUES  = 8,
        BT_WAIT_BATCH   = 8,
@@ -14,18 +16,13 @@ struct bt_wait_state {
 #define TAG_TO_INDEX(bt, tag)  ((tag) >> (bt)->bits_per_word)
 #define TAG_TO_BIT(bt, tag)    ((tag) & ((1 << (bt)->bits_per_word) - 1))
 
-struct blk_mq_bitmap {
-       unsigned long word;
-       unsigned long depth;
-} ____cacheline_aligned_in_smp;
-
 struct blk_mq_bitmap_tags {
        unsigned int depth;
        unsigned int wake_cnt;
        unsigned int bits_per_word;
 
        unsigned int map_nr;
-       struct blk_mq_bitmap *map;
+       struct blk_align_bitmap *map;
 
        unsigned int wake_index;
        struct bt_wait_state *bs;
This page took 0.024057 seconds and 5 git commands to generate.