diff options
author | Omar Sandoval <osandov@fb.com> | 2017-03-21 08:56:06 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-03-21 10:03:08 -0600 |
commit | fa2e39cb9ee78f440d99a1bcfa47462c48a6fc11 (patch) | |
tree | f52d01dd11fabdbe05388ce755af699d7c38bf80 /block/blk-sysfs.c | |
parent | 0315b159085621d2ff72dbf69ca6fb4a5b32bae2 (diff) |
blk-stat: use READ and WRITE instead of BLK_STAT_{READ,WRITE}
The stats buckets will become generic soon, so make the existing users
use the common READ and WRITE definitions instead of one internal to
blk-stat.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk-sysfs.c')
-rw-r--r-- | block/blk-sysfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index c44b321335f3..fdb45fd0db0b 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -518,8 +518,8 @@ static ssize_t queue_stats_show(struct request_queue *q, char *page) blk_queue_stat_get(q, stat); - ret = print_stat(page, &stat[BLK_STAT_READ], "read :"); - ret += print_stat(page + ret, &stat[BLK_STAT_WRITE], "write:"); + ret = print_stat(page, &stat[READ], "read :"); + ret += print_stat(page + ret, &stat[WRITE], "write:"); return ret; } |