Lines Matching refs:status
21 cast_to_nlm(__be32 status, u32 vers) in cast_to_nlm() argument
25 switch (status) { in cast_to_nlm()
34 status = nlm_lck_denied; in cast_to_nlm()
37 status = nlm_lck_denied_nolocks; in cast_to_nlm()
41 return (status); in cast_to_nlm()
43 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) argument
45 #define cast_status(status) (status) argument
123 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_test()
124 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_test()
127 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in __nlmsvc_proc_test()
128 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_test()
132 ntohl(resp->status), rqstp->rq_vers); in __nlmsvc_proc_test()
159 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_lock()
160 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_lock()
170 resp->status = nlm_lck_denied_nolocks; in __nlmsvc_proc_lock()
175 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in __nlmsvc_proc_lock()
178 if (resp->status == nlm_drop_reply) in __nlmsvc_proc_lock()
181 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_lock()
209 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_cancel()
214 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_cancel()
215 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_cancel()
218 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in __nlmsvc_proc_cancel()
220 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in __nlmsvc_proc_cancel()
250 resp->status = nlm_lck_denied_grace_period; in __nlmsvc_proc_unlock()
255 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in __nlmsvc_proc_unlock()
256 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in __nlmsvc_proc_unlock()
259 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in __nlmsvc_proc_unlock()
261 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in __nlmsvc_proc_unlock()
286 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in __nlmsvc_proc_granted()
287 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in __nlmsvc_proc_granted()
409 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_share()
414 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
415 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_share()
418 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
420 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_share()
444 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_unshare()
449 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
450 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_unshare()
453 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
455 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_unshare()
528 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()