Whamcloud - gitweb
LU-10810 ptlrpc: introduce OST_SEEK RPC
[fs/lustre-release.git] / lustre / ptlrpc / nrs_delay.c
index 301b08c..7222c09 100644 (file)
@@ -779,7 +779,7 @@ LDEBUGFS_SEQ_FOPS(ptlrpc_lprocfs_nrs_delay_pct);
 
 static int nrs_delay_lprocfs_init(struct ptlrpc_service *svc)
 {
-       struct lprocfs_vars nrs_delay_lprocfs_vars[] = {
+       struct ldebugfs_vars nrs_delay_lprocfs_vars[] = {
                { .name         = "nrs_delay_min",
                  .fops         = &ptlrpc_lprocfs_nrs_delay_min_fops,
                  .data         = svc },
@@ -792,11 +792,12 @@ static int nrs_delay_lprocfs_init(struct ptlrpc_service *svc)
                { NULL }
        };
 
-       if (IS_ERR_OR_NULL(svc->srv_debugfs_entry))
+       if (!svc->srv_debugfs_entry)
                return 0;
 
-       return ldebugfs_add_vars(svc->srv_debugfs_entry, nrs_delay_lprocfs_vars,
-                                NULL);
+       ldebugfs_add_vars(svc->srv_debugfs_entry, nrs_delay_lprocfs_vars, NULL);
+
+       return 0;
 }
 
 /**