/fs/ocfs2/dlm/ |
D | dlmunlock.c | 63 struct dlm_lockstatus *lksb, 68 struct dlm_lockstatus *lksb, 74 struct dlm_lockstatus *lksb, 103 struct dlm_lockstatus *lksb, in dlmunlock_common() argument 158 status = dlm_get_cancel_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common() 160 status = dlm_get_unlock_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common() 169 memcpy(res->lvb, lksb->lvb, DLM_LVB_LEN); in dlmunlock_common() 184 status = dlm_send_remote_unlock_request(dlm, res, lock, lksb, in dlmunlock_common() 261 lksb->flags &= ~(DLM_LKSB_PUT_LVB|DLM_LKSB_GET_LVB); in dlmunlock_common() 285 struct dlm_lockstatus *lksb, in dlmunlock_master() argument [all …]
|
D | dlmlock.c | 148 lock->lksb->status = DLM_NORMAL; in dlmlock_master() 210 lock->lksb->flags &= ~DLM_LKSB_GET_LVB; in dlm_revert_pending_lock() 372 kfree(lock->lksb); in dlm_lock_release() 428 struct dlm_lockstatus *lksb) in dlm_new_lock() argument 437 if (!lksb) { in dlm_new_lock() 439 lksb = kzalloc(sizeof(*lksb), GFP_NOFS); in dlm_new_lock() 440 if (!lksb) { in dlm_new_lock() 450 lock->lksb = lksb; in dlm_new_lock() 451 lksb->lockid = lock; in dlm_new_lock() 469 struct dlm_lockstatus *lksb = NULL; in dlm_create_lock_handler() local [all …]
|
D | dlmast.c | 186 struct dlm_lockstatus *lksb = lock->lksb; in dlm_update_lvb() local 187 BUG_ON(!lksb); in dlm_update_lvb() 194 if (lksb->flags & DLM_LKSB_GET_LVB) { in dlm_update_lvb() 198 memcpy(lksb->lvb, res->lvb, DLM_LVB_LEN); in dlm_update_lvb() 211 lksb->flags &= ~(DLM_LKSB_PUT_LVB|DLM_LKSB_GET_LVB); in dlm_update_lvb() 218 struct dlm_lockstatus *lksb; in dlm_do_local_ast() local 222 lksb = lock->lksb; in dlm_do_local_ast() 235 struct dlm_lockstatus *lksb; in dlm_do_remote_ast() local 240 lksb = lock->lksb; in dlm_do_remote_ast() 243 lksbflags = lksb->flags; in dlm_do_remote_ast() [all …]
|
D | dlmconvert.c | 161 lock->lksb->flags |= DLM_LKSB_PUT_LVB; in __dlmconvert_master() 171 lock->lksb->flags |= DLM_LKSB_GET_LVB; in __dlmconvert_master() 213 lock->lksb->status = DLM_NORMAL; in __dlmconvert_master() 217 if (lock->lksb->flags & DLM_LKSB_PUT_LVB) in __dlmconvert_master() 218 memcpy(res->lvb, lock->lksb->lvb, DLM_LVB_LEN); in __dlmconvert_master() 255 lock->lksb->flags &= ~(DLM_LKSB_GET_LVB|DLM_LKSB_PUT_LVB); in dlm_revert_pending_convert() 305 lock->lksb->flags |= DLM_LKSB_PUT_LVB; in dlmconvert_remote() 311 lock->lksb->flags |= DLM_LKSB_GET_LVB; in dlmconvert_remote() 374 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_convert_request() 429 struct dlm_lockstatus *lksb; in dlm_convert_lock_handler() local [all …]
|
D | dlmrecovery.c | 1183 if (lock->lksb) { in dlm_add_lock_to_array() 1184 ml->flags = lock->lksb->flags; in dlm_add_lock_to_array() 1192 memcmp(mres->lvb, lock->lksb->lvb, DLM_LVB_LEN))) { in dlm_add_lock_to_array() 1197 memcpy(mres->lvb, lock->lksb->lvb, DLM_LVB_LEN); in dlm_add_lock_to_array() 1217 dummy.lksb = NULL; in dlm_add_dummy_lock() 1728 struct dlm_lockstatus *lksb = NULL; in dlm_process_recovery_data() local 1753 lksb = NULL; in dlm_process_recovery_data() 1818 lksb = newlock->lksb; in dlm_process_recovery_data() 1825 lksb->flags |= (ml->flags & in dlm_process_recovery_data() 1832 if (lksb->flags & DLM_LKSB_PUT_LVB) { in dlm_process_recovery_data() [all …]
|
D | dlmapi.h | 182 struct dlm_lockstatus *lksb, 191 struct dlm_lockstatus *lksb,
|
D | userdlm.c | 128 struct dlm_lockstatus *lksb; in user_ast() local 135 lksb = &(lockres->l_lksb); in user_ast() 136 if (lksb->status != DLM_NORMAL) { in user_ast() 138 lksb->status, lockres->l_namelen, lockres->l_name); in user_ast()
|
D | dlmthread.c | 362 BUG_ON(!target->lksb); in dlm_shuffle_lists() 363 target->lksb->status = DLM_NORMAL; in dlm_shuffle_lists() 423 BUG_ON(!target->lksb); in dlm_shuffle_lists() 424 target->lksb->status = DLM_NORMAL; in dlm_shuffle_lists()
|
D | dlmcommon.h | 364 struct dlm_lockstatus *lksb; member 784 struct dlm_lockstatus *lksb);
|
/fs/ocfs2/ |
D | stackglue.h | 75 struct dlm_lksb lksb; member 162 union ocfs2_dlm_lksb *lksb, 176 union ocfs2_dlm_lksb *lksb, 186 int (*lock_status)(union ocfs2_dlm_lksb *lksb); 191 void *(*lock_lvb)(union ocfs2_dlm_lksb *lksb); 208 void (*dump_lksb)(union ocfs2_dlm_lksb *lksb); 244 union ocfs2_dlm_lksb *lksb, 250 union ocfs2_dlm_lksb *lksb, 254 int ocfs2_dlm_lock_status(union ocfs2_dlm_lksb *lksb); 255 void *ocfs2_dlm_lvb(union ocfs2_dlm_lksb *lksb); [all …]
|
D | stack_user.c | 675 struct dlm_lksb *lksb = fsdlm_astarg_to_lksb(astarg); in fsdlm_lock_ast_wrapper() local 676 int status = lksb->sb_status; in fsdlm_lock_ast_wrapper() 705 union ocfs2_dlm_lksb *lksb, in user_dlm_lock() argument 713 if (!lksb->lksb_fsdlm.sb_lvbptr) in user_dlm_lock() 714 lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb + in user_dlm_lock() 717 ret = dlm_lock(conn->cc_lockspace, mode, &lksb->lksb_fsdlm, in user_dlm_lock() 725 union ocfs2_dlm_lksb *lksb, in user_dlm_unlock() argument 731 ret = dlm_unlock(conn->cc_lockspace, lksb->lksb_fsdlm.sb_lkid, in user_dlm_unlock() 732 flags, &lksb->lksb_fsdlm, astarg); in user_dlm_unlock() 736 static int user_dlm_lock_status(union ocfs2_dlm_lksb *lksb) in user_dlm_lock_status() argument [all …]
|
D | stack_o2cb.c | 200 union ocfs2_dlm_lksb *lksb, in o2cb_dlm_lock() argument 211 status = dlmlock(conn->cc_lockspace, o2dlm_mode, &lksb->lksb_o2dlm, in o2cb_dlm_lock() 220 union ocfs2_dlm_lksb *lksb, in o2cb_dlm_unlock() argument 228 status = dlmunlock(conn->cc_lockspace, &lksb->lksb_o2dlm, in o2cb_dlm_unlock() 234 static int o2cb_dlm_lock_status(union ocfs2_dlm_lksb *lksb) in o2cb_dlm_lock_status() argument 236 return dlm_status_to_errno(lksb->lksb_o2dlm.status); in o2cb_dlm_lock_status() 239 static void *o2cb_dlm_lvb(union ocfs2_dlm_lksb *lksb) in o2cb_dlm_lvb() argument 241 return (void *)(lksb->lksb_o2dlm.lvb); in o2cb_dlm_lvb() 244 static void o2cb_dump_lksb(union ocfs2_dlm_lksb *lksb) in o2cb_dump_lksb() argument 246 dlm_print_one_lock(lksb->lksb_o2dlm.lockid); in o2cb_dump_lksb()
|
D | stackglue.c | 244 union ocfs2_dlm_lksb *lksb, in ocfs2_dlm_lock() argument 252 return active_stack->sp_ops->dlm_lock(conn, mode, lksb, flags, in ocfs2_dlm_lock() 258 union ocfs2_dlm_lksb *lksb, in ocfs2_dlm_unlock() argument 264 return active_stack->sp_ops->dlm_unlock(conn, lksb, flags, astarg); in ocfs2_dlm_unlock() 268 int ocfs2_dlm_lock_status(union ocfs2_dlm_lksb *lksb) in ocfs2_dlm_lock_status() argument 270 return active_stack->sp_ops->lock_status(lksb); in ocfs2_dlm_lock_status() 279 void *ocfs2_dlm_lvb(union ocfs2_dlm_lksb *lksb) in ocfs2_dlm_lvb() argument 281 return active_stack->sp_ops->lock_lvb(lksb); in ocfs2_dlm_lvb() 285 void ocfs2_dlm_dump_lksb(union ocfs2_dlm_lksb *lksb) in ocfs2_dlm_dump_lksb() argument 287 active_stack->sp_ops->dump_lksb(lksb); in ocfs2_dlm_dump_lksb()
|
/fs/gfs2/locking/dlm/ |
D | lock.c | 83 if (lp->lksb.sb_status == -DLM_ECANCEL) { in process_complete() 92 lp->lksb.sb_lkid = 0; in process_complete() 97 if (lp->lksb.sb_status != -DLM_EUNLOCK) { in process_complete() 99 lp->lksb.sb_status, lp->lockname.ln_type, in process_complete() 107 lp->lksb.sb_lkid = 0; in process_complete() 116 if (lp->lksb.sb_flags & DLM_SBF_VALNOTVALID) in process_complete() 117 memset(lp->lksb.sb_lvbptr, 0, GDLM_LVB_SIZE); in process_complete() 119 if (lp->lksb.sb_flags & DLM_SBF_ALTMODE) { in process_complete() 144 if (lp->lksb.sb_status) { in process_complete() 146 if ((lp->lksb.sb_status == -EAGAIN) && in process_complete() [all …]
|
D | lock_dlm.h | 105 struct dlm_lksb lksb; member
|
/fs/dlm/ |
D | user.c | 47 __u32 lksb; member 78 struct dlm_lksb32 lksb; member 116 kb->i.lock.lksb = (void *)(long)kb32->i.lock.lksb; in compat_input() 138 res32->lksb.sb_status = res->lksb.sb_status; in compat_output() 139 res32->lksb.sb_flags = res->lksb.sb_flags; in compat_output() 140 res32->lksb.sb_lkid = res->lksb.sb_lkid; in compat_output() 141 res32->lksb.sb_lvbptr = (__u32)(long)res->lksb.sb_lvbptr; in compat_output() 221 lkb->lkb_id, ua->lksb.sb_status, lkb->lkb_flags); in dlm_user_add_ast() 223 eol = lkb_is_endoflife(lkb, ua->lksb.sb_status, type); in dlm_user_add_ast() 267 if (!params->castaddr || !params->lksb) { in device_user_lock() [all …]
|
D | memory.c | 85 if (ua->lksb.sb_lvbptr) in dlm_free_lkb() 86 kfree(ua->lksb.sb_lvbptr); in dlm_free_lkb()
|
D | lock.c | 1970 static int set_lock_args(int mode, struct dlm_lksb *lksb, uint32_t flags, in set_lock_args() argument 2011 if (!ast || !lksb) in set_lock_args() 2014 if (flags & DLM_LKF_VALBLK && !lksb->sb_lvbptr) in set_lock_args() 2017 if (flags & DLM_LKF_CONVERT && !lksb->sb_lkid) in set_lock_args() 2030 args->lksb = lksb; in set_lock_args() 2080 lkb->lkb_lksb = args->lksb; in validate_lock_args() 2081 lkb->lkb_lvbptr = args->lksb->sb_lvbptr; in validate_lock_args() 2520 struct dlm_lksb *lksb, in dlm_lock() argument 2541 error = find_lkb(ls, lksb->sb_lkid, &lkb); in dlm_lock() 2548 error = set_lock_args(mode, lksb, flags, namelen, 0, ast, in dlm_lock() [all …]
|
D | dlm_internal.h | 150 struct dlm_lksb *lksb; member 541 struct dlm_lksb lksb; member
|