summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorOmar Sandoval <osandov@fb.com>2017-03-21 11:56:07 -0400
committerJens Axboe <axboe@fb.com>2017-03-21 12:03:08 -0400
commit4875253fddd7b6d322f028ad023d44b6efb7f73b (patch)
tree95caf563904046d935ad5e974f94234b2e8679ef /block
parentfa2e39cb9ee78f440d99a1bcfa47462c48a6fc11 (diff)
blk-stat: move BLK_RQ_STAT_BATCH definition to blk-stat.c
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk-stat.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/block/blk-stat.c b/block/blk-stat.c
index f80582be5344..4681c488c262 100644
--- a/block/blk-stat.c
+++ b/block/blk-stat.c
@@ -9,6 +9,8 @@
9#include "blk-stat.h" 9#include "blk-stat.h"
10#include "blk-mq.h" 10#include "blk-mq.h"
11 11
12#define BLK_RQ_STAT_BATCH 64
13
12static void blk_stat_flush_batch(struct blk_rq_stat *stat) 14static void blk_stat_flush_batch(struct blk_rq_stat *stat)
13{ 15{
14 const s32 nr_batch = READ_ONCE(stat->nr_batch); 16 const s32 nr_batch = READ_ONCE(stat->nr_batch);