X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fsec_lproc.c;h=37fc57891d65e334e7661e212b28b9a46fadd1a6;hb=4dfe4a49ccab3d087c14c8b3d539061f9f7f4b75;hp=fdce982568f1f767ac4648454affb8f7405dd6f6;hpb=e79cbe8f935d65e0abaef8c4e7a19ec4816f492b;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/sec_lproc.c b/lustre/ptlrpc/sec_lproc.c index fdce982..37fc578 100644 --- a/lustre/ptlrpc/sec_lproc.c +++ b/lustre/ptlrpc/sec_lproc.c @@ -267,14 +267,9 @@ int sptlrpc_lproc_init(void) LASSERT(sptlrpc_debugfs_dir == NULL); - sptlrpc_debugfs_dir = ldebugfs_register("sptlrpc", debugfs_lustre_root, - sptlrpc_lprocfs_vars, NULL); - if (IS_ERR_OR_NULL(sptlrpc_debugfs_dir)) { - rc = sptlrpc_debugfs_dir ? PTR_ERR(sptlrpc_debugfs_dir) - : -ENOMEM; - sptlrpc_debugfs_dir = NULL; - return rc; - } + sptlrpc_debugfs_dir = debugfs_create_dir("sptlrpc", + debugfs_lustre_root); + ldebugfs_add_vars(sptlrpc_debugfs_dir, sptlrpc_lprocfs_vars, NULL); sptlrpc_lprocfs_dir = lprocfs_register("sptlrpc", proc_lustre_root, NULL, NULL);