path: root/block/blk-mq.h
diff options
authorBart Van Assche <>2017-04-26 13:47:49 -0700
committerJens Axboe <>2017-04-26 15:09:04 -0600
commit4c9e4019f1880bea7ae6e9603d14c2ed0f1c4e23 (patch)
tree2c82638c517be9601808ab270d1d3bc423831a7b /block/blk-mq.h
parent2d0364c8c1a97a1d44760895a982221c06af0f35 (diff)
blk-mq: Let blk_mq_debugfs_register() look up the queue name
A later patch will move the call of blk_mq_debugfs_register() to a function to which the queue name is not passed as an argument. To avoid having to add a 'name' argument to multiple callers, let blk_mq_debugfs_register() look up the queue name. Signed-off-by: Bart Van Assche <> Reviewed-by: Omar Sandoval <> Reviewed-by: Hannes Reinecke <> Signed-off-by: Jens Axboe <>
Diffstat (limited to 'block/blk-mq.h')
1 files changed, 2 insertions, 3 deletions
diff --git a/block/blk-mq.h b/block/blk-mq.h
index 7d955c756810..9049c0f11505 100644
--- a/block/blk-mq.h
+++ b/block/blk-mq.h
@@ -87,13 +87,12 @@ extern void blk_mq_hctx_kobj_init(struct blk_mq_hw_ctx *hctx);
* debugfs helpers
-int blk_mq_debugfs_register(struct request_queue *q, const char *name);
+int blk_mq_debugfs_register(struct request_queue *q);
void blk_mq_debugfs_unregister(struct request_queue *q);
int blk_mq_debugfs_register_hctxs(struct request_queue *q);
void blk_mq_debugfs_unregister_hctxs(struct request_queue *q);
-static inline int blk_mq_debugfs_register(struct request_queue *q,
- const char *name)
+static inline int blk_mq_debugfs_register(struct request_queue *q)
return 0;