Whamcloud - gitweb
LU-8066 lustre: drop ldebugfs_remove()
[fs/lustre-release.git] / lustre / ldlm / ldlm_pool.c
index 9bf4dcc..95ad36b 100644 (file)
@@ -872,10 +872,8 @@ static void ldlm_pool_debugfs_fini(struct ldlm_pool *pl)
                lprocfs_free_stats(&pl->pl_stats);
                pl->pl_stats = NULL;
        }
-       if (pl->pl_debugfs_entry != NULL) {
-               ldebugfs_remove(&pl->pl_debugfs_entry);
-               pl->pl_debugfs_entry = NULL;
-       }
+       debugfs_remove_recursive(pl->pl_debugfs_entry);
+       pl->pl_debugfs_entry = NULL;
 }
 
 int ldlm_pool_init(struct ldlm_pool *pl, struct ldlm_namespace *ns,