Lines Matching refs:status
20 cast_to_nlm(__be32 status, u32 vers) in cast_to_nlm() argument
24 switch (status) { in cast_to_nlm()
33 status = nlm_lck_denied; in cast_to_nlm()
36 status = nlm_lck_denied_nolocks; in cast_to_nlm()
40 return (status); in cast_to_nlm()
42 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers)) argument
44 #define cast_status(status) (status) argument
116 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_test()
117 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_test()
120 …resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->coo… in nlmsvc_proc_test()
121 if (resp->status == nlm_drop_reply) in nlmsvc_proc_test()
125 ntohl(resp->status), rqstp->rq_vers); in nlmsvc_proc_test()
145 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_lock()
146 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_lock()
156 resp->status = nlm_lck_denied_nolocks; in nlmsvc_proc_lock()
161 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock, in nlmsvc_proc_lock()
164 if (resp->status == nlm_drop_reply) in nlmsvc_proc_lock()
167 dprintk("lockd: LOCK status %d\n", ntohl(resp->status)); in nlmsvc_proc_lock()
188 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_cancel()
193 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_cancel()
194 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_cancel()
197 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock)); in nlmsvc_proc_cancel()
199 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status)); in nlmsvc_proc_cancel()
222 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_unlock()
227 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unlock()
228 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_unlock()
231 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock)); in nlmsvc_proc_unlock()
233 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status)); in nlmsvc_proc_unlock()
250 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock); in nlmsvc_proc_granted()
251 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status)); in nlmsvc_proc_granted()
370 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_share()
375 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_share()
376 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_share()
379 resp->status = cast_status(nlmsvc_share_file(host, file, argp)); in nlmsvc_proc_share()
381 dprintk("lockd: SHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_share()
403 resp->status = nlm_lck_denied_grace_period; in nlmsvc_proc_unshare()
408 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file))) in nlmsvc_proc_unshare()
409 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success; in nlmsvc_proc_unshare()
412 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp)); in nlmsvc_proc_unshare()
414 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status)); in nlmsvc_proc_unshare()
483 nlmsvc_grant_reply(&argp->cookie, argp->status); in nlmsvc_proc_granted_res()