diff mbox

[10/9] blk-mq-debugfs: rename hw queue directories from <n> to hctx<n>

Message ID 7dd56561c651b20e54e82b7246e6732471b40f38.1493841286.git.osandov@fb.com (mailing list archive)
State New, archived
Headers show

Commit Message

Omar Sandoval May 3, 2017, 7:57 p.m. UTC
From: Omar Sandoval <osandov@fb.com>

Since we got rid of the intermediate "mq" directory, it's not completely
clear what these numbered directories represent. Rename them.

Signed-off-by: Omar Sandoval <osandov@fb.com>
---
One more bonus change.

 block/blk-mq-debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/block/blk-mq-debugfs.c b/block/blk-mq-debugfs.c
index 3a33f7e2f68c..115d73d99bb3 100644
--- a/block/blk-mq-debugfs.c
+++ b/block/blk-mq-debugfs.c
@@ -761,7 +761,7 @@  int blk_mq_debugfs_register_hctx(struct request_queue *q,
 	if (!q->debugfs_dir)
 		return -ENOENT;
 
-	snprintf(name, sizeof(name), "%u", hctx->queue_num);
+	snprintf(name, sizeof(name), "hctx%u", hctx->queue_num);
 	hctx->debugfs_dir = debugfs_create_dir(name, q->debugfs_dir);
 	if (!hctx->debugfs_dir)
 		return -ENOMEM;