• Home
  • Raw
  • Download

Lines Matching refs:rv

290 static void queue_cast(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv)  in queue_cast()  argument
301 if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_TIMEOUT_CANCEL)) { in queue_cast()
303 rv = -ETIMEDOUT; in queue_cast()
306 if (rv == -DLM_ECANCEL && (lkb->lkb_flags & DLM_IFL_DEADLOCK_CANCEL)) { in queue_cast()
308 rv = -EDEADLK; in queue_cast()
311 dlm_add_cb(lkb, DLM_CB_CAST, lkb->lkb_grmode, rv, lkb->lkb_sbflags); in queue_cast()
1147 int rv; in unhold_rsb() local
1148 rv = kref_put(&r->res_ref, toss_rsb); in unhold_rsb()
1149 DLM_ASSERT(!rv, dlm_dump_rsb(r);); in unhold_rsb()
1187 int rv; in create_lkb() local
1205 rv = idr_alloc(&ls->ls_lkbidr, lkb, 1, 0, GFP_NOWAIT); in create_lkb()
1206 if (rv >= 0) in create_lkb()
1207 lkb->lkb_id = rv; in create_lkb()
1211 if (rv < 0) { in create_lkb()
1212 log_error(ls, "create_lkb idr error %d", rv); in create_lkb()
1213 return rv; in create_lkb()
1295 int rv; in unhold_lkb() local
1296 rv = kref_put(&lkb->lkb_ref, kill_lkb); in unhold_lkb()
1297 DLM_ASSERT(!rv, dlm_print_lkb(lkb);); in unhold_lkb()
1659 int i, len, rv; in shrink_bucket() local
1744 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in shrink_bucket()
1745 if (rv) { in shrink_bucket()
2085 int rv = 0; in revert_lock() local
2094 rv = 1; in revert_lock()
2102 rv = -1; in revert_lock()
2107 return rv; in revert_lock()
2447 int rv; in can_be_granted() local
2454 rv = _can_be_granted(r, lkb, now, recover); in can_be_granted()
2455 if (rv) in can_be_granted()
2495 rv = _can_be_granted(r, lkb, now, 0); in can_be_granted()
2496 if (rv) in can_be_granted()
2502 return rv; in can_be_granted()
2812 int rv = -EINVAL; in set_lock_args() local
2866 rv = 0; in set_lock_args()
2868 return rv; in set_lock_args()
2888 int rv = -EINVAL; in validate_lock_args() local
2898 rv = -EBUSY; in validate_lock_args()
2919 rv = 0; in validate_lock_args()
2921 if (rv) in validate_lock_args()
2923 rv, lkb->lkb_id, lkb->lkb_flags, args->flags, in validate_lock_args()
2926 return rv; in validate_lock_args()
2939 int rv = -EINVAL; in validate_unlock_args() local
2953 rv = -ENOENT; in validate_unlock_args()
2970 rv = -EBUSY; in validate_unlock_args()
2988 rv = -EBUSY; in validate_unlock_args()
2995 rv = -EBUSY; in validate_unlock_args()
3003 rv = -EBUSY; in validate_unlock_args()
3029 rv = -EBUSY; in validate_unlock_args()
3037 rv = -EBUSY; in validate_unlock_args()
3047 rv = -EBUSY; in validate_unlock_args()
3056 rv = 0; in validate_unlock_args()
3058 if (rv) in validate_unlock_args()
3059 log_debug(ls, "validate_unlock_args %d %x %x %x %x %d %s", rv, in validate_unlock_args()
3063 return rv; in validate_unlock_args()
3797 int mstype, int rv) in send_common_reply() argument
3811 ms->m_result = rv; in send_common_reply()
3818 static int send_request_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_request_reply() argument
3820 return send_common_reply(r, lkb, DLM_MSG_REQUEST_REPLY, rv); in send_request_reply()
3823 static int send_convert_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_convert_reply() argument
3825 return send_common_reply(r, lkb, DLM_MSG_CONVERT_REPLY, rv); in send_convert_reply()
3828 static int send_unlock_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_unlock_reply() argument
3830 return send_common_reply(r, lkb, DLM_MSG_UNLOCK_REPLY, rv); in send_unlock_reply()
3833 static int send_cancel_reply(struct dlm_rsb *r, struct dlm_lkb *lkb, int rv) in send_cancel_reply() argument
3835 return send_common_reply(r, lkb, DLM_MSG_CANCEL_REPLY, rv); in send_cancel_reply()
3839 int ret_nodeid, int rv) in send_lookup_reply() argument
3851 ms->m_result = rv; in send_lookup_reply()
4020 int rv, dir_nodeid; in send_repeat_remove() local
4033 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in send_repeat_remove()
4034 if (!rv) { in send_repeat_remove()
4040 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in send_repeat_remove()
4041 if (!rv) { in send_repeat_remove()
4055 rv = _create_message(ls, sizeof(struct dlm_message) + len, in send_repeat_remove()
4057 if (rv) in send_repeat_remove()
4388 int rv, len, dir_nodeid, from_nodeid; in receive_remove() local
4424 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].toss, name, len, &r); in receive_remove()
4425 if (rv) { in receive_remove()
4427 rv = dlm_search_rsb_tree(&ls->ls_rsbtbl[b].keep, name, len, &r); in receive_remove()
4428 if (rv) { in receive_remove()