blk-mq: expose stream write hints through debugfs
authorJens Axboe <axboe@kernel.dk>
Fri, 16 Jun 2017 16:59:45 +0000 (10:59 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 16 Jun 2017 17:19:58 +0000 (11:19 -0600)
commit73d1d63e7949cee588c4f9138c41df0868f0c661
treebbefeb58f875f0406950a83b3e67c87822130af0
parenta9626426a26c00be0ca7b917ceba4e932723ba82
blk-mq: expose stream write hints through debugfs

Useful to verify that things are working the way they should.
Reading the file will return number of kb written with each
write hint. Writing the file will reset the statistics. No care
is taken to ensure that we don't race on updates.

Drivers will write to q->write_hints[] if they handle a given
write hint.

Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-mq-debugfs.c
include/linux/blkdev.h