projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bcache: return 0 from bch_debug_init() if CONFIG_DEBUG_FS=n
[linux-2.6-microblaze.git]
/
drivers
/
md
/
bcache
/
debug.c
diff --git
a/drivers/md/bcache/debug.c
b/drivers/md/bcache/debug.c
index
4e63c6f
..
d030ce3
100644
(file)
--- 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);
}