• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/lockd/

Lines Matching refs:status

20 cast_to_nlm(__be32 status, u32 vers)
22 /* Note: status is assumed to be in network byte order !!! */
24 switch (status) {
33 status = nlm_lck_denied;
36 status = nlm_lck_denied_nolocks;
40 return (status);
42 #define cast_status(status) (cast_to_nlm(status, rqstp->rq_vers))
44 #define cast_status(status) (status)
115 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
116 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
119 resp->status = cast_status(nlmsvc_testlock(rqstp, file, host, &argp->lock, &resp->lock, &resp->cookie));
120 if (resp->status == nlm_drop_reply)
123 dprintk("lockd: TEST status %d vers %d\n",
124 ntohl(resp->status), rqstp->rq_vers);
144 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
145 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
149 resp->status = cast_status(nlmsvc_lock(rqstp, file, host, &argp->lock,
152 if (resp->status == nlm_drop_reply)
155 dprintk("lockd: LOCK status %d\n", ntohl(resp->status));
175 resp->status = nlm_lck_denied_grace_period;
180 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
181 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
184 resp->status = cast_status(nlmsvc_cancel_blocked(file, &argp->lock));
186 dprintk("lockd: CANCEL status %d\n", ntohl(resp->status));
208 resp->status = nlm_lck_denied_grace_period;
213 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
214 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
217 resp->status = cast_status(nlmsvc_unlock(file, &argp->lock));
219 dprintk("lockd: UNLOCK status %d\n", ntohl(resp->status));
236 resp->status = nlmclnt_grant(svc_addr(rqstp), &argp->lock);
237 dprintk("lockd: GRANTED status %d\n", ntohl(resp->status));
349 resp->status = nlm_lck_denied_grace_period;
354 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
355 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
358 resp->status = cast_status(nlmsvc_share_file(host, file, argp));
360 dprintk("lockd: SHARE status %d\n", ntohl(resp->status));
382 resp->status = nlm_lck_denied_grace_period;
387 if ((resp->status = nlmsvc_retrieve_args(rqstp, argp, &host, &file)))
388 return resp->status == nlm_drop_reply ? rpc_drop_reply :rpc_success;
391 resp->status = cast_status(nlmsvc_unshare_file(host, file, argp));
393 dprintk("lockd: UNSHARE status %d\n", ntohl(resp->status));
462 nlmsvc_grant_reply(&argp->cookie, argp->status);
497 #define St 1 /* status */