Commit 4875253f authored by Omar Sandoval's avatar Omar Sandoval Committed by Jens Axboe

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: default avatarOmar Sandoval <osandov@fb.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent fa2e39cb
...@@ -9,6 +9,8 @@ ...@@ -9,6 +9,8 @@
#include "blk-stat.h" #include "blk-stat.h"
#include "blk-mq.h" #include "blk-mq.h"
#define BLK_RQ_STAT_BATCH 64
static void blk_stat_flush_batch(struct blk_rq_stat *stat) static void blk_stat_flush_batch(struct blk_rq_stat *stat)
{ {
const s32 nr_batch = READ_ONCE(stat->nr_batch); const s32 nr_batch = READ_ONCE(stat->nr_batch);
......
...@@ -287,8 +287,6 @@ struct blk_issue_stat { ...@@ -287,8 +287,6 @@ struct blk_issue_stat {
u64 time; u64 time;
}; };
#define BLK_RQ_STAT_BATCH 64
struct blk_rq_stat { struct blk_rq_stat {
s64 mean; s64 mean;
u64 min; u64 min;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment