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);