Lines Matching refs:status

158 	int			status;  in nlmclnt_proc()  local
176 status = nlmclnt_lock(call, fl); in nlmclnt_proc()
178 status = nlmclnt_unlock(call, fl); in nlmclnt_proc()
180 status = nlmclnt_test(call, fl); in nlmclnt_proc()
182 status = -EINVAL; in nlmclnt_proc()
186 dprintk("lockd: clnt proc returns %d\n", status); in nlmclnt_proc()
187 return status; in nlmclnt_proc()
232 int status = -EINTR; in nlm_wait_on_grace() local
239 status = 0; in nlm_wait_on_grace()
242 return status; in nlm_wait_on_grace()
260 int status; in nlmclnt_call() local
275 if ((status = rpc_call_sync(clnt, &msg, 0)) < 0) { in nlmclnt_call()
276 dprintk("lockd: rpc_call returned error %d\n", -status); in nlmclnt_call()
277 switch (status) { in nlmclnt_call()
279 status = -EINVAL; in nlmclnt_call()
285 status = -EAGAIN; in nlmclnt_call()
288 return signalled () ? -EINTR : status; in nlmclnt_call()
294 if (resp->status == nlm_lck_denied_grace_period) { in nlmclnt_call()
307 ntohl(resp->status)); in nlmclnt_call()
318 status = nlm_wait_on_grace(&host->h_gracewait); in nlmclnt_call()
319 } while (status == 0); in nlmclnt_call()
321 return status; in nlmclnt_call()
418 int status; in nlmclnt_test() local
420 status = nlmclnt_call(nfs_file_cred(fl->fl_file), req, NLMPROC_TEST); in nlmclnt_test()
421 if (status < 0) in nlmclnt_test()
424 switch (req->a_res.status) { in nlmclnt_test()
438 status = nlm_stat_to_errno(req->a_res.status); in nlmclnt_test()
442 return status; in nlmclnt_test()
520 int status = -ENOLCK; in nlmclnt_lock() local
527 status = do_vfs_lock(fl); in nlmclnt_lock()
529 if (status < 0) in nlmclnt_lock()
538 resp->status = nlm_lck_blocked; in nlmclnt_lock()
542 status = nlmclnt_call(cred, req, NLMPROC_LOCK); in nlmclnt_lock()
543 if (status < 0) in nlmclnt_lock()
546 if (resp->status == nlm_lck_denied_grace_period) in nlmclnt_lock()
548 if (resp->status != nlm_lck_blocked) in nlmclnt_lock()
551 status = nlmclnt_block(block, req, NLMCLNT_POLL_TIMEOUT); in nlmclnt_lock()
552 if (status < 0) in nlmclnt_lock()
554 if (resp->status != nlm_lck_blocked) in nlmclnt_lock()
561 if (resp->status == nlm_lck_blocked) { in nlmclnt_lock()
568 if (resp->status == nlm_granted) { in nlmclnt_lock()
581 status = 0; in nlmclnt_lock()
583 if (status < 0) in nlmclnt_lock()
590 if (resp->status == nlm_lck_denied && (fl_flags & FL_SLEEP)) in nlmclnt_lock()
591 status = -ENOLCK; in nlmclnt_lock()
593 status = nlm_stat_to_errno(resp->status); in nlmclnt_lock()
598 return status; in nlmclnt_lock()
612 return status; in nlmclnt_lock()
622 int status; in nlmclnt_reclaim() local
633 status = nlmclnt_call(nfs_file_cred(fl->fl_file), req, NLMPROC_LOCK); in nlmclnt_reclaim()
634 if (status >= 0 && req->a_res.status == nlm_granted) in nlmclnt_reclaim()
639 status, ntohl(req->a_res.status)); in nlmclnt_reclaim()
664 int status; in nlmclnt_unlock() local
674 status = do_vfs_lock(fl); in nlmclnt_unlock()
677 if (status == -ENOENT) { in nlmclnt_unlock()
678 status = 0; in nlmclnt_unlock()
683 status = nlmclnt_async_call(nfs_file_cred(fl->fl_file), req, in nlmclnt_unlock()
685 if (status < 0) in nlmclnt_unlock()
688 if (resp->status == nlm_granted) in nlmclnt_unlock()
691 if (resp->status != nlm_lck_denied_nolocks) in nlmclnt_unlock()
693 ntohl(resp->status)); in nlmclnt_unlock()
695 status = -ENOLCK; in nlmclnt_unlock()
698 return status; in nlmclnt_unlock()
704 u32 status = ntohl(req->a_res.status); in nlmclnt_unlock_callback() local
719 if (status == NLM_LCK_DENIED_GRACE_PERIOD) { in nlmclnt_unlock_callback()
723 if (status != NLM_LCK_GRANTED) in nlmclnt_unlock_callback()
724 printk(KERN_WARNING "lockd: unexpected unlock status: %d\n", status); in nlmclnt_unlock_callback()
746 int status; in nlmclnt_cancel() local
760 status = nlmclnt_async_call(nfs_file_cred(fl->fl_file), req, in nlmclnt_cancel()
762 if (status == 0 && req->a_res.status == nlm_lck_denied) in nlmclnt_cancel()
763 status = -ENOLCK; in nlmclnt_cancel()
765 return status; in nlmclnt_cancel()
771 u32 status = ntohl(req->a_res.status); in nlmclnt_cancel_callback() local
783 status, task->tk_pid); in nlmclnt_cancel_callback()
785 switch (status) { in nlmclnt_cancel_callback()
796 status); in nlmclnt_cancel_callback()
820 nlm_stat_to_errno(__be32 status) in nlm_stat_to_errno() argument
822 switch(ntohl(status)) { in nlm_stat_to_errno()
847 ntohl(status)); in nlm_stat_to_errno()