Skip to content

Commit

Permalink
blk-stat: move BLK_RQ_STAT_BATCH definition to blk-stat.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Omar Sandoval authored and Jens Axboe committed Mar 21, 2017
1 parent fa2e39c commit 4875253
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions block/blk-stat.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 0 additions & 2 deletions include/linux/blk_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,6 @@ struct blk_issue_stat {
u64 time;
};

#define BLK_RQ_STAT_BATCH 64

struct blk_rq_stat {
s64 mean;
u64 min;
Expand Down

0 comments on commit 4875253

Please sign in to comment.