Lines Matching refs:oh
801 struct ocfs2_lock_holder *oh) in ocfs2_add_holder() argument
803 INIT_LIST_HEAD(&oh->oh_list); in ocfs2_add_holder()
804 oh->oh_owner_pid = get_pid(task_pid(current)); in ocfs2_add_holder()
807 list_add_tail(&oh->oh_list, &lockres->l_holders); in ocfs2_add_holder()
815 struct ocfs2_lock_holder *oh; in ocfs2_pid_holder() local
818 list_for_each_entry(oh, &lockres->l_holders, oh_list) { in ocfs2_pid_holder()
819 if (oh->oh_owner_pid == pid) { in ocfs2_pid_holder()
821 return oh; in ocfs2_pid_holder()
829 struct ocfs2_lock_holder *oh) in ocfs2_remove_holder() argument
832 list_del(&oh->oh_list); in ocfs2_remove_holder()
835 put_pid(oh->oh_owner_pid); in ocfs2_remove_holder()
2667 struct ocfs2_lock_holder *oh) in ocfs2_inode_lock_tracker() argument
2690 oh->oh_ex = ex; in ocfs2_inode_lock_tracker()
2691 ocfs2_add_holder(lockres, oh); in ocfs2_inode_lock_tracker()
2723 struct ocfs2_lock_holder *oh, in ocfs2_inode_unlock_tracker() argument
2735 ocfs2_inode_unlock(inode, oh->oh_ex); in ocfs2_inode_unlock_tracker()
2736 ocfs2_remove_holder(lockres, oh); in ocfs2_inode_unlock_tracker()