Lines Matching refs:lksb
653 struct ocfs2_dlm_lksb *lksb = astarg; in fsdlm_lock_ast_wrapper() local
654 int status = lksb->lksb_fsdlm.sb_status; in fsdlm_lock_ast_wrapper()
667 lksb->lksb_conn->cc_proto->lp_unlock_ast(lksb, 0); in fsdlm_lock_ast_wrapper()
669 lksb->lksb_conn->cc_proto->lp_lock_ast(lksb); in fsdlm_lock_ast_wrapper()
674 struct ocfs2_dlm_lksb *lksb = astarg; in fsdlm_blocking_ast_wrapper() local
676 lksb->lksb_conn->cc_proto->lp_blocking_ast(lksb, level); in fsdlm_blocking_ast_wrapper()
681 struct ocfs2_dlm_lksb *lksb, in user_dlm_lock() argument
686 if (!lksb->lksb_fsdlm.sb_lvbptr) in user_dlm_lock()
687 lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb + in user_dlm_lock()
690 return dlm_lock(conn->cc_lockspace, mode, &lksb->lksb_fsdlm, in user_dlm_lock()
692 fsdlm_lock_ast_wrapper, lksb, in user_dlm_lock()
697 struct ocfs2_dlm_lksb *lksb, in user_dlm_unlock() argument
700 return dlm_unlock(conn->cc_lockspace, lksb->lksb_fsdlm.sb_lkid, in user_dlm_unlock()
701 flags, &lksb->lksb_fsdlm, lksb); in user_dlm_unlock()
704 static int user_dlm_lock_status(struct ocfs2_dlm_lksb *lksb) in user_dlm_lock_status() argument
706 return lksb->lksb_fsdlm.sb_status; in user_dlm_lock_status()
709 static int user_dlm_lvb_valid(struct ocfs2_dlm_lksb *lksb) in user_dlm_lvb_valid() argument
711 int invalid = lksb->lksb_fsdlm.sb_flags & DLM_SBF_VALNOTVALID; in user_dlm_lvb_valid()
716 static void *user_dlm_lvb(struct ocfs2_dlm_lksb *lksb) in user_dlm_lvb() argument
718 if (!lksb->lksb_fsdlm.sb_lvbptr) in user_dlm_lvb()
719 lksb->lksb_fsdlm.sb_lvbptr = (char *)lksb + in user_dlm_lvb()
721 return (void *)(lksb->lksb_fsdlm.sb_lvbptr); in user_dlm_lvb()
724 static void user_dlm_dump_lksb(struct ocfs2_dlm_lksb *lksb) in user_dlm_dump_lksb() argument
814 struct dlm_lksb *lksb, char *name) in sync_unlock() argument
819 error = dlm_unlock(conn->cc_lockspace, lksb->sb_lkid, 0, lksb, conn); in sync_unlock()
822 name, lksb->sb_lkid, error); in sync_unlock()
828 if (lksb->sb_status != -DLM_EUNLOCK) { in sync_unlock()
830 name, lksb->sb_lkid, lksb->sb_status); in sync_unlock()
838 struct dlm_lksb *lksb, char *name) in sync_lock() argument
843 error = dlm_lock(conn->cc_lockspace, mode, lksb, flags, in sync_lock()
848 name, lksb->sb_lkid, flags, mode, error); in sync_lock()
854 status = lksb->sb_status; in sync_lock()
858 name, lksb->sb_lkid, flags, mode, status); in sync_lock()