summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--drivers/md/bcache/debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c
index 181eceb507da..469190daf63d 100644
--- a/drivers/md/bcache/debug.c
+++ b/drivers/md/bcache/debug.c
@@ -373,7 +373,7 @@ static const struct file_operations btree_format_debug_ops = {
void bch_debug_exit_cache_set(struct cache_set *c)
{
if (!IS_ERR_OR_NULL(c->debug))
- debugfs_remove(c->debug);
+ debugfs_remove_recursive(c->debug);
}
void bch_debug_init_cache_set(struct cache_set *c)