summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-05-18 20:10:43 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2018-05-18 20:10:43 +0300
commit61c2ad9a2e223962735b6ff6a5de85f1adcc892b (patch)
treefc95c85aabca93f7d2e12ed6e128a586f2977746 /drivers/md
parent8ccaecd014bcb52cd6651fb8be15dca6e6b9e04f (diff)
parent1c1a2ee1b53b006754073eefc65d2b2cedb5264b (diff)
downloadlinux-61c2ad9a2e223962735b6ff6a5de85f1adcc892b.tar.xz
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
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/bcache/debug.c4
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)
int __init bch_debug_init(struct kobject *kobj)
{
- bcache_debug = debugfs_create_dir("bcache", NULL);
+ if (!IS_ENABLED(CONFIG_DEBUG_FS))
+ return 0;
+ bcache_debug = debugfs_create_dir("bcache", NULL);
return IS_ERR_OR_NULL(bcache_debug);
}