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)
127 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
128 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
133 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
134 if (resp->status == nlm_drop_reply)
137 dprintk("lockd: TEST status %d vers %d\n",
138 ntohl(resp->status), rqstp->rq_vers);
165 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
166 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
176 resp->status = nlm_lck_denied_nolocks;
181 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
184 if (resp->status == nlm_drop_reply)
187 dprintk("lockd: LOCK status %d\n", ntohl(resp->status));
215 resp->status = nlm_lck_denied_grace_period;
220 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
221 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
224 resp->status = cast_status(nlmsvc_cancel_blocked(net, file, &argp->lock));
226 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status));
256 resp->status = nlm_lck_denied_grace_period;
261 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
262 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
265 resp->status = cast_status(nlmsvc_unlock(net, file, &argp->lock));
267 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status));
292 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
293 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status));
413 resp->status = nlm_lck_denied_grace_period;
418 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
419 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
422 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
424 dprintk("lockd: SHARE status %d\n", ntohl(resp->status));
448 resp->status = nlm_lck_denied_grace_period;
453 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
454 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
457 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
459 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status));
532 nlmsvc_grant_reply(&argp->cookie, argp->status);
549 #define St 1 /* status */