Lines Matching refs:status
21 cast_to_nlm(__be32 status, u32 vers)
23 /* Note: status is assumed to be in network byte order !!! */
25 switch (status) {
34 status = nlm_lck_denied;
37 status = nlm_lck_denied_nolocks;
41 return (status);
43 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers))
45 #define cast_status(status) (status)
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
124 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
127 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
128 if (resp->status == nlm_drop_reply)
131 dprintk("lockd: TEST status %d vers %d\n",
132 ntohl(resp->status), rqstp->rq_vers);
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
160 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
170 resp->status = nlm_lck_denied_nolocks;
175 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
178 if (resp->status == nlm_drop_reply)
181 dprintk("lockd: LOCK status %d\n", ntohl(resp->status));
209 resp->status = nlm_lck_denied_grace_period;
214 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
215 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
218 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock));
220 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status));
250 resp->status = nlm_lck_denied_grace_period;
255 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
256 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
259 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock));
261 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status));
286 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
287 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status));
409 resp->status = nlm_lck_denied_grace_period;
414 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
415 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
418 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
420 dprintk("lockd: SHARE status %d\n", ntohl(resp->status));
444 resp->status = nlm_lck_denied_grace_period;
449 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
450 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
453 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
455 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status));
528 nlmsvc_grant_reply(&argp->cookie, argp->status);
545 #define St 1 /* status */