diff options
| -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 | } |
