Skip to content

Commit 4875253

Browse files
osandovaxboe
authored andcommitted
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>
1 parent fa2e39c commit 4875253

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎block/blk-stat.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
#include "blk-stat.h"
1010
#include "blk-mq.h"
1111

12+
#define BLK_RQ_STAT_BATCH 64
13+
1214
static void blk_stat_flush_batch(struct blk_rq_stat *stat)
1315
{
1416
const s32 nr_batch = READ_ONCE(stat->nr_batch);

‎include/linux/blk_types.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -287,8 +287,6 @@ struct blk_issue_stat {
287287
u64 time;
288288
};
289289

290-
#define BLK_RQ_STAT_BATCH 64
291-
292290
struct blk_rq_stat {
293291
s64 mean;
294292
u64 min;

0 commit comments

Comments
 (0)