Whamcloud - gitweb
LU-8066 lustre: drop ldebugfs_remove()
[fs/lustre-release.git] / lustre / ptlrpc / sec_lproc.c
index c320081..e3d99ac 100644 (file)
@@ -289,8 +289,8 @@ int sptlrpc_lproc_init(void)
 
 void sptlrpc_lproc_fini(void)
 {
-       if (!IS_ERR_OR_NULL(sptlrpc_debugfs_dir))
-               ldebugfs_remove(&sptlrpc_debugfs_dir);
+       debugfs_remove_recursive(sptlrpc_debugfs_dir);
+       sptlrpc_debugfs_dir = NULL;
 
        if (!IS_ERR_OR_NULL(sptlrpc_lprocfs_dir))
                lprocfs_remove(&sptlrpc_lprocfs_dir);