Skip to content

Commit

Permalink
Merge tag 'for-linus-20180518' of git://git.kernel.dk/linux-block
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Linus Torvalds committed May 18, 2018
2 parents 8ccaecd + 1c1a2ee commit 61c2ad9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/md/bcache/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

0 comments on commit 61c2ad9

Please sign in to comment.