/fs/ocfs2/ |
D | stackglue.h | 67 struct dlm_lksb lksb; member 91 void (*lp_lock_ast)(struct ocfs2_dlm_lksb *lksb); 92 void (*lp_blocking_ast)(struct ocfs2_dlm_lksb *lksb, int level); 93 void (*lp_unlock_ast)(struct ocfs2_dlm_lksb *lksb, int error); 175 struct ocfs2_dlm_lksb *lksb, 190 struct ocfs2_dlm_lksb *lksb, 199 int (*lock_status)(struct ocfs2_dlm_lksb *lksb); 204 int (*lvb_valid)(struct ocfs2_dlm_lksb *lksb); 209 void *(*lock_lvb)(struct ocfs2_dlm_lksb *lksb); 226 void (*dump_lksb)(struct ocfs2_dlm_lksb *lksb); [all …]
|
D | stack_o2cb.c | 166 struct ocfs2_dlm_lksb *lksb = astarg; in o2dlm_lock_ast_wrapper() local 168 lksb->lksb_conn->cc_proto->lp_lock_ast(lksb); in o2dlm_lock_ast_wrapper() 173 struct ocfs2_dlm_lksb *lksb = astarg; in o2dlm_blocking_ast_wrapper() local 175 lksb->lksb_conn->cc_proto->lp_blocking_ast(lksb, level); in o2dlm_blocking_ast_wrapper() 180 struct ocfs2_dlm_lksb *lksb = astarg; in o2dlm_unlock_ast_wrapper() local 197 lksb->lksb_conn->cc_proto->lp_unlock_ast(lksb, error); in o2dlm_unlock_ast_wrapper() 202 struct ocfs2_dlm_lksb *lksb, in o2cb_dlm_lock() argument 212 status = dlmlock(conn->cc_lockspace, o2dlm_mode, &lksb->lksb_o2dlm, in o2cb_dlm_lock() 214 o2dlm_lock_ast_wrapper, lksb, in o2cb_dlm_lock() 221 struct ocfs2_dlm_lksb *lksb, in o2cb_dlm_unlock() argument [all …]
|
D | stack_user.c | 663 struct ocfs2_dlm_lksb *lksb = astarg; in fsdlm_lock_ast_wrapper() local 664 int status = lksb->lksb_fsdlm.sb_status; in fsdlm_lock_ast_wrapper() 677 lksb->lksb_conn->cc_proto->lp_unlock_ast(lksb, 0); in fsdlm_lock_ast_wrapper() 679 lksb->lksb_conn->cc_proto->lp_lock_ast(lksb); in fsdlm_lock_ast_wrapper() 684 struct ocfs2_dlm_lksb *lksb = astarg; in fsdlm_blocking_ast_wrapper() local 686 lksb->lksb_conn->cc_proto->lp_blocking_ast(lksb, level); in fsdlm_blocking_ast_wrapper() 691 struct ocfs2_dlm_lksb *lksb, in user_dlm_lock() argument 698 if (!lksb->lksb_fsdlm.sb_lvbptr) in user_dlm_lock() 699 lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb + in user_dlm_lock() 702 ret = dlm_lock(conn->cc_lockspace, mode, &lksb->lksb_fsdlm, in user_dlm_lock() [all …]
|
D | stackglue.c | 243 struct ocfs2_dlm_lksb *lksb, in ocfs2_dlm_lock() argument 248 if (!lksb->lksb_conn) in ocfs2_dlm_lock() 249 lksb->lksb_conn = conn; in ocfs2_dlm_lock() 251 BUG_ON(lksb->lksb_conn != conn); in ocfs2_dlm_lock() 252 return active_stack->sp_ops->dlm_lock(conn, mode, lksb, flags, in ocfs2_dlm_lock() 258 struct ocfs2_dlm_lksb *lksb, in ocfs2_dlm_unlock() argument 261 BUG_ON(lksb->lksb_conn == NULL); in ocfs2_dlm_unlock() 263 return active_stack->sp_ops->dlm_unlock(conn, lksb, flags); in ocfs2_dlm_unlock() 267 int ocfs2_dlm_lock_status(struct ocfs2_dlm_lksb *lksb) in ocfs2_dlm_lock_status() argument 269 return active_stack->sp_ops->lock_status(lksb); in ocfs2_dlm_lock_status() [all …]
|
D | dlmglue.c | 302 static inline struct ocfs2_lock_res *ocfs2_lksb_to_lock_res(struct ocfs2_dlm_lksb *lksb) in ocfs2_lksb_to_lock_res() argument 304 return container_of(lksb, struct ocfs2_lock_res, l_lksb); in ocfs2_lksb_to_lock_res() 1072 static void ocfs2_blocking_ast(struct ocfs2_dlm_lksb *lksb, int level) in ocfs2_blocking_ast() argument 1074 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_blocking_ast() 1103 static void ocfs2_locking_ast(struct ocfs2_dlm_lksb *lksb) in ocfs2_locking_ast() argument 1105 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_locking_ast() 1169 static void ocfs2_unlock_ast(struct ocfs2_dlm_lksb *lksb, int error) in ocfs2_unlock_ast() argument 1171 struct ocfs2_lock_res *lockres = ocfs2_lksb_to_lock_res(lksb); in ocfs2_unlock_ast()
|
/fs/ocfs2/dlm/ |
D | dlmunlock.c | 61 struct dlm_lockstatus *lksb, 66 struct dlm_lockstatus *lksb, 72 struct dlm_lockstatus *lksb, 101 struct dlm_lockstatus *lksb, in dlmunlock_common() argument 157 status = dlm_get_cancel_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common() 159 status = dlm_get_unlock_actions(dlm, res, lock, lksb, &actions); in dlmunlock_common() 168 memcpy(res->lvb, lksb->lvb, DLM_LVB_LEN); in dlmunlock_common() 183 status = dlm_send_remote_unlock_request(dlm, res, lock, lksb, in dlmunlock_common() 277 lksb->flags &= ~(DLM_LKSB_PUT_LVB|DLM_LKSB_GET_LVB); in dlmunlock_common() 301 struct dlm_lockstatus *lksb, in dlmunlock_master() argument [all …]
|
D | dlmlock.c | 145 lock->lksb->status = DLM_NORMAL; in dlmlock_master() 204 lock->lksb->flags &= ~DLM_LKSB_GET_LVB; in dlm_revert_pending_lock() 368 kfree(lock->lksb); in dlm_lock_release() 424 struct dlm_lockstatus *lksb) in dlm_new_lock() argument 433 if (!lksb) { in dlm_new_lock() 435 lksb = kzalloc(sizeof(*lksb), GFP_NOFS); in dlm_new_lock() 436 if (!lksb) { in dlm_new_lock() 446 lock->lksb = lksb; in dlm_new_lock() 447 lksb->lockid = lock; in dlm_new_lock() 465 struct dlm_lockstatus *lksb = NULL; in dlm_create_lock_handler() local [all …]
|
D | dlmconvert.c | 158 lock->lksb->flags |= DLM_LKSB_PUT_LVB; in __dlmconvert_master() 168 lock->lksb->flags |= DLM_LKSB_GET_LVB; in __dlmconvert_master() 208 lock->lksb->status = DLM_NORMAL; in __dlmconvert_master() 212 if (lock->lksb->flags & DLM_LKSB_PUT_LVB) in __dlmconvert_master() 213 memcpy(res->lvb, lock->lksb->lvb, DLM_LVB_LEN); in __dlmconvert_master() 256 lock->lksb->flags &= ~(DLM_LKSB_GET_LVB|DLM_LKSB_PUT_LVB); in dlm_revert_pending_convert() 319 lock->lksb->flags |= DLM_LKSB_PUT_LVB; in dlmconvert_remote() 325 lock->lksb->flags |= DLM_LKSB_GET_LVB; in dlmconvert_remote() 397 vec[1].iov_base = lock->lksb->lvb; in dlm_send_remote_convert_request() 454 struct dlm_lockstatus *lksb; in dlm_convert_lock_handler() local [all …]
|
D | dlmast.c | 196 struct dlm_lockstatus *lksb = lock->lksb; in dlm_update_lvb() local 197 BUG_ON(!lksb); in dlm_update_lvb() 203 if (lksb->flags & DLM_LKSB_GET_LVB) { in dlm_update_lvb() 207 memcpy(lksb->lvb, res->lvb, DLM_LVB_LEN); in dlm_update_lvb() 220 lksb->flags &= ~(DLM_LKSB_PUT_LVB|DLM_LKSB_GET_LVB); in dlm_update_lvb() 227 struct dlm_lockstatus *lksb; in dlm_do_local_ast() local 234 lksb = lock->lksb; in dlm_do_local_ast() 247 struct dlm_lockstatus *lksb; in dlm_do_remote_ast() local 255 lksb = lock->lksb; in dlm_do_remote_ast() 258 lksbflags = lksb->flags; in dlm_do_remote_ast() [all …]
|
D | dlmrecovery.c | 1194 if (!lock->lksb) in dlm_prepare_lvb_for_migration() 1206 memcpy(mres->lvb, lock->lksb->lvb, DLM_LVB_LEN); in dlm_prepare_lvb_for_migration() 1211 if (!memcmp(mres->lvb, lock->lksb->lvb, DLM_LVB_LEN)) in dlm_prepare_lvb_for_migration() 1238 if (lock->lksb) { in dlm_add_lock_to_array() 1239 ml->flags = lock->lksb->flags; in dlm_add_lock_to_array() 1259 dummy.lksb = NULL; in dlm_add_dummy_lock() 1814 struct dlm_lockstatus *lksb = NULL; in dlm_process_recovery_data() local 1840 lksb = NULL; in dlm_process_recovery_data() 1936 lksb = newlock->lksb; in dlm_process_recovery_data() 1943 lksb->flags |= (ml->flags & in dlm_process_recovery_data() [all …]
|
D | dlmapi.h | 182 struct dlm_lockstatus *lksb, 191 struct dlm_lockstatus *lksb,
|
D | dlmthread.c | 440 BUG_ON(!target->lksb); in dlm_shuffle_lists() 441 target->lksb->status = DLM_NORMAL; in dlm_shuffle_lists() 500 BUG_ON(!target->lksb); in dlm_shuffle_lists() 501 target->lksb->status = DLM_NORMAL; in dlm_shuffle_lists()
|
D | dlmcommon.h | 370 struct dlm_lockstatus *lksb; member 835 struct dlm_lockstatus *lksb);
|
/fs/dlm/ |
D | user.c | 50 __u32 lksb; member 81 struct dlm_lksb32 lksb; member 118 kb->i.lock.lksb = (void *)(long)kb32->i.lock.lksb; in compat_input() 141 res32->lksb.sb_status = res->lksb.sb_status; in compat_output() 142 res32->lksb.sb_flags = res->lksb.sb_flags; in compat_output() 143 res32->lksb.sb_lkid = res->lksb.sb_lkid; in compat_output() 144 res32->lksb.sb_lvbptr = (__u32)(long)res->lksb.sb_lvbptr; in compat_output() 251 if (!params->castaddr || !params->lksb) { in device_user_lock() 260 ua->user_lksb = params->lksb; in device_user_lock() 286 error = ua->lksb.sb_lkid; in device_user_lock() [all …]
|
D | lock.c | 2805 static int set_lock_args(int mode, struct dlm_lksb *lksb, uint32_t flags, in set_lock_args() argument 2846 if (!ast || !lksb) in set_lock_args() 2849 if (flags & DLM_LKF_VALBLK && !lksb->sb_lvbptr) in set_lock_args() 2852 if (flags & DLM_LKF_CONVERT && !lksb->sb_lkid) in set_lock_args() 2865 args->lksb = lksb; in set_lock_args() 2915 lkb->lkb_lksb = args->lksb; in validate_lock_args() 2916 lkb->lkb_lvbptr = args->lksb->sb_lvbptr; in validate_lock_args() 3411 struct dlm_lksb *lksb, in dlm_lock() argument 3432 error = find_lkb(ls, lksb->sb_lkid, &lkb); in dlm_lock() 3439 error = set_lock_args(mode, lksb, flags, namelen, 0, ast, in dlm_lock() [all …]
|
D | memory.c | 87 kfree(ua->lksb.sb_lvbptr); in dlm_free_lkb()
|
D | dlm_internal.h | 153 struct dlm_lksb *lksb; member 676 struct dlm_lksb lksb; member
|
/fs/ocfs2/dlmfs/ |
D | userdlm.c | 46 static inline struct user_lock_res *user_lksb_to_lock_res(struct ocfs2_dlm_lksb *lksb) in user_lksb_to_lock_res() argument 48 return container_of(lksb, struct user_lock_res, l_lksb); in user_lksb_to_lock_res() 127 static void user_ast(struct ocfs2_dlm_lksb *lksb) in user_ast() argument 129 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); in user_ast() 215 static void user_bast(struct ocfs2_dlm_lksb *lksb, int level) in user_bast() argument 217 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); in user_bast() 233 static void user_unlock_ast(struct ocfs2_dlm_lksb *lksb, int status) in user_unlock_ast() argument 235 struct user_lock_res *lockres = user_lksb_to_lock_res(lksb); in user_unlock_ast()
|
/fs/gfs2/ |
D | lock_dlm.c | 498 static int sync_unlock(struct gfs2_sbd *sdp, struct dlm_lksb *lksb, char *name) in sync_unlock() argument 503 error = dlm_unlock(ls->ls_dlm, lksb->sb_lkid, 0, lksb, ls); in sync_unlock() 506 name, lksb->sb_lkid, error); in sync_unlock() 512 if (lksb->sb_status != -DLM_EUNLOCK) { in sync_unlock() 514 name, lksb->sb_lkid, lksb->sb_status); in sync_unlock() 521 unsigned int num, struct dlm_lksb *lksb, char *name) in sync_lock() argument 530 error = dlm_lock(ls->ls_dlm, mode, lksb, flags, in sync_lock() 535 name, lksb->sb_lkid, flags, mode, error); in sync_lock() 541 status = lksb->sb_status; in sync_lock() 545 name, lksb->sb_lkid, flags, mode, status); in sync_lock()
|