diff options
author | Omar Sandoval <osandov@fb.com> | 2017-01-31 14:53:20 -0800 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2017-02-02 10:20:16 -0700 |
commit | 18fbda91c6370d520278db9ee1e768b59ef5c4ab (patch) | |
tree | 24a7e92d1dd90533dd783ea87abf13cf55284049 /block/blk.h | |
parent | a428d314ebcf65842fd64ad850c02c280586e74d (diff) | |
download | linux-18fbda91c6370d520278db9ee1e768b59ef5c4ab.tar.gz linux-18fbda91c6370d520278db9ee1e768b59ef5c4ab.tar.bz2 linux-18fbda91c6370d520278db9ee1e768b59ef5c4ab.zip |
block: use same block debugfs directory for blk-mq and blktrace
When I added the blk-mq debugging information to debugfs, I didn't
notice that blktrace also creates a "block" directory in debugfs. Make
them use the same dentry, now created in the core block code. Based on a
patch from Jens.
Signed-off-by: Omar Sandoval <osandov@fb.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/blk.h')
-rw-r--r-- | block/blk.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/block/blk.h b/block/blk.h index c1bd4bf9e645..6aa53a4aad88 100644 --- a/block/blk.h +++ b/block/blk.h @@ -14,6 +14,10 @@ /* Max future timer expiry for timeouts */ #define BLK_MAX_TIMEOUT (5 * HZ) +#ifdef CONFIG_DEBUG_FS +extern struct dentry *blk_debugfs_root; +#endif + struct blk_flush_queue { unsigned int flush_queue_delayed:1; unsigned int flush_pending_idx:1; |