blk-stat: move BLK_RQ_STAT_BATCH definition to blk-stat.c
authorOmar Sandoval <osandov@fb.com>
Tue, 21 Mar 2017 15:56:07 +0000 (08:56 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 21 Mar 2017 16:03:08 +0000 (10:03 -0600)
This is an implementation detail that no-one outside of blk-stat.c uses.

Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-stat.c
include/linux/blk_types.h

index f80582be5344fc5a2dc69f9748cbd269ccdc9d7c..4681c488c262088d5dee42c1aaf76651009fbb91 100644 (file)
@@ -9,6 +9,8 @@
 #include "blk-stat.h"
 #include "blk-mq.h"
 
+#define BLK_RQ_STAT_BATCH      64
+
 static void blk_stat_flush_batch(struct blk_rq_stat *stat)
 {
        const s32 nr_batch = READ_ONCE(stat->nr_batch);
index d703acb55d0f0d196296ef4d82f4e97a5efd9c3a..e213c5e7500bb0a68d9f49116d8746f9569be723 100644 (file)
@@ -287,8 +287,6 @@ struct blk_issue_stat {
        u64 time;
 };
 
-#define BLK_RQ_STAT_BATCH      64
-
 struct blk_rq_stat {
        s64 mean;
        u64 min;