• Home
  • Raw
  • Download

Lines Matching refs:status

161 	int			status;  in nlmclnt_proc()  local
184 status = nlmclnt_lock(call, fl); in nlmclnt_proc()
186 status = nlmclnt_unlock(call, fl); in nlmclnt_proc()
188 status = nlmclnt_test(call, fl); in nlmclnt_proc()
190 status = -EINVAL; in nlmclnt_proc()
194 dprintk("lockd: clnt proc returns %d\n", status); in nlmclnt_proc()
195 return status; in nlmclnt_proc()
244 int status = -EINTR; in nlm_wait_on_grace() local
251 status = 0; in nlm_wait_on_grace()
254 return status; in nlm_wait_on_grace()
272 int status; in nlmclnt_call() local
287 if ((status = rpc_call_sync(clnt, &msg, 0)) < 0) { in nlmclnt_call()
288 dprintk("lockd: rpc_call returned error %d\n", -status); in nlmclnt_call()
289 switch (status) { in nlmclnt_call()
291 status = -EINVAL; in nlmclnt_call()
297 status = -EAGAIN; in nlmclnt_call()
300 return signalled () ? -EINTR : status; in nlmclnt_call()
306 if (resp->status == nlm_lck_denied_grace_period) { in nlmclnt_call()
319 ntohl(resp->status)); in nlmclnt_call()
330 status = nlm_wait_on_grace(&host->h_gracewait); in nlmclnt_call()
331 } while (status == 0); in nlmclnt_call()
333 return status; in nlmclnt_call()
430 int status; in nlmclnt_test() local
432 status = nlmclnt_call(nfs_file_cred(fl->fl_file), req, NLMPROC_TEST); in nlmclnt_test()
433 if (status < 0) in nlmclnt_test()
436 switch (req->a_res.status) { in nlmclnt_test()
450 status = nlm_stat_to_errno(req->a_res.status); in nlmclnt_test()
454 return status; in nlmclnt_test()
521 int status = -ENOLCK; in nlmclnt_lock() local
528 status = do_vfs_lock(fl); in nlmclnt_lock()
530 if (status < 0) in nlmclnt_lock()
539 resp->status = nlm_lck_blocked; in nlmclnt_lock()
543 status = nlmclnt_call(cred, req, NLMPROC_LOCK); in nlmclnt_lock()
544 if (status < 0) in nlmclnt_lock()
547 if (resp->status == nlm_lck_denied_grace_period) in nlmclnt_lock()
549 if (resp->status != nlm_lck_blocked) in nlmclnt_lock()
552 status = nlmclnt_block(block, req, NLMCLNT_POLL_TIMEOUT); in nlmclnt_lock()
553 if (status < 0) in nlmclnt_lock()
555 if (resp->status != nlm_lck_blocked) in nlmclnt_lock()
562 if (resp->status == nlm_lck_blocked) { in nlmclnt_lock()
569 if (resp->status == nlm_granted) { in nlmclnt_lock()
582 status = 0; in nlmclnt_lock()
584 if (status < 0) in nlmclnt_lock()
591 if (resp->status == nlm_lck_denied && (fl_flags & FL_SLEEP)) in nlmclnt_lock()
592 status = -ENOLCK; in nlmclnt_lock()
594 status = nlm_stat_to_errno(resp->status); in nlmclnt_lock()
599 return status; in nlmclnt_lock()
613 return status; in nlmclnt_lock()
623 int status; in nlmclnt_reclaim() local
634 status = nlmclnt_call(nfs_file_cred(fl->fl_file), req, NLMPROC_LOCK); in nlmclnt_reclaim()
635 if (status >= 0 && req->a_res.status == nlm_granted) in nlmclnt_reclaim()
640 status, ntohl(req->a_res.status)); in nlmclnt_reclaim()
665 int status; in nlmclnt_unlock() local
675 status = do_vfs_lock(fl); in nlmclnt_unlock()
678 if (status == -ENOENT) { in nlmclnt_unlock()
679 status = 0; in nlmclnt_unlock()
684 status = nlmclnt_async_call(nfs_file_cred(fl->fl_file), req, in nlmclnt_unlock()
686 if (status < 0) in nlmclnt_unlock()
689 if (resp->status == nlm_granted) in nlmclnt_unlock()
692 if (resp->status != nlm_lck_denied_nolocks) in nlmclnt_unlock()
694 ntohl(resp->status)); in nlmclnt_unlock()
696 status = -ENOLCK; in nlmclnt_unlock()
699 return status; in nlmclnt_unlock()
718 u32 status = ntohl(req->a_res.status); in nlmclnt_unlock_callback() local
733 if (status == NLM_LCK_DENIED_GRACE_PERIOD) { in nlmclnt_unlock_callback()
737 if (status != NLM_LCK_GRANTED) in nlmclnt_unlock_callback()
738 printk(KERN_WARNING "lockd: unexpected unlock status: %d\n", status); in nlmclnt_unlock_callback()
761 int status; in nlmclnt_cancel() local
775 status = nlmclnt_async_call(nfs_file_cred(fl->fl_file), req, in nlmclnt_cancel()
777 if (status == 0 && req->a_res.status == nlm_lck_denied) in nlmclnt_cancel()
778 status = -ENOLCK; in nlmclnt_cancel()
780 return status; in nlmclnt_cancel()
786 u32 status = ntohl(req->a_res.status); in nlmclnt_cancel_callback() local
798 status, task->tk_pid); in nlmclnt_cancel_callback()
800 switch (status) { in nlmclnt_cancel_callback()
811 status); in nlmclnt_cancel_callback()
835 nlm_stat_to_errno(__be32 status) in nlm_stat_to_errno() argument
837 switch(ntohl(status)) { in nlm_stat_to_errno()
862 ntohl(status)); in nlm_stat_to_errno()