diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-18 13:10:43 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2018-05-18 13:10:43 -0400 |
commit | 61c2ad9a2e223962735b6ff6a5de85f1adcc892b (patch) | |
tree | fc95c85aabca93f7d2e12ed6e128a586f2977746 | |
parent | 8ccaecd014bcb52cd6651fb8be15dca6e6b9e04f (diff) | |
parent | 1c1a2ee1b53b006754073eefc65d2b2cedb5264b (diff) |
Merge tag 'for-linus-20180518' of git://git.kernel.dk/linux-block
Pull block fix from Jens Axboe:
"Single fix this time, from Coly, fixing a failure case when
CONFIG_DEBUGFS isn't enabled"
* tag 'for-linus-20180518' of git://git.kernel.dk/linux-block:
bcache: return 0 from bch_debug_init() if CONFIG_DEBUG_FS=n
-rw-r--r-- | drivers/md/bcache/debug.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c index 4e63c6f6c04d..d030ce3025a6 100644 --- a/drivers/md/bcache/debug.c +++ b/drivers/md/bcache/debug.c | |||
@@ -250,7 +250,9 @@ void bch_debug_exit(void) | |||
250 | 250 | ||
251 | int __init bch_debug_init(struct kobject *kobj) | 251 | int __init bch_debug_init(struct kobject *kobj) |
252 | { | 252 | { |
253 | bcache_debug = debugfs_create_dir("bcache", NULL); | 253 | if (!IS_ENABLED(CONFIG_DEBUG_FS)) |
254 | return 0; | ||
254 | 255 | ||
256 | bcache_debug = debugfs_create_dir("bcache", NULL); | ||
255 | return IS_ERR_OR_NULL(bcache_debug); | 257 | return IS_ERR_OR_NULL(bcache_debug); |
256 | } | 258 | } |