Lines Matching refs:dlm_debug

414 				       struct ocfs2_dlm_debug *dlm_debug)  in ocfs2_add_lockres_tracking()  argument
419 list_add(&res->l_debug_list, &dlm_debug->d_lockres_tracking); in ocfs2_add_lockres_tracking()
2702 struct ocfs2_dlm_debug *dlm_debug; in ocfs2_dlm_debug_free() local
2704 dlm_debug = container_of(kref, struct ocfs2_dlm_debug, d_refcnt); in ocfs2_dlm_debug_free()
2706 kfree(dlm_debug); in ocfs2_dlm_debug_free()
2709 void ocfs2_put_dlm_debug(struct ocfs2_dlm_debug *dlm_debug) in ocfs2_put_dlm_debug() argument
2711 if (dlm_debug) in ocfs2_put_dlm_debug()
2712 kref_put(&dlm_debug->d_refcnt, ocfs2_dlm_debug_free); in ocfs2_put_dlm_debug()
2722 struct ocfs2_dlm_debug *dlm_debug; in ocfs2_new_dlm_debug() local
2724 dlm_debug = kmalloc(sizeof(struct ocfs2_dlm_debug), GFP_KERNEL); in ocfs2_new_dlm_debug()
2725 if (!dlm_debug) { in ocfs2_new_dlm_debug()
2730 kref_init(&dlm_debug->d_refcnt); in ocfs2_new_dlm_debug()
2731 INIT_LIST_HEAD(&dlm_debug->d_lockres_tracking); in ocfs2_new_dlm_debug()
2732 dlm_debug->d_locking_state = NULL; in ocfs2_new_dlm_debug()
2734 return dlm_debug; in ocfs2_new_dlm_debug()
2748 struct ocfs2_dlm_debug *dlm_debug = priv->p_dlm_debug; in ocfs2_dlm_next_res() local
2754 if (&iter->l_debug_list == &dlm_debug->d_lockres_tracking) { in ocfs2_dlm_next_res()
2961 struct ocfs2_dlm_debug *dlm_debug = osb->osb_dlm_debug; in ocfs2_dlm_init_debug() local
2963 dlm_debug->d_locking_state = debugfs_create_file("locking_state", in ocfs2_dlm_init_debug()
2968 if (!dlm_debug->d_locking_state) { in ocfs2_dlm_init_debug()
2975 ocfs2_get_dlm_debug(dlm_debug); in ocfs2_dlm_init_debug()
2982 struct ocfs2_dlm_debug *dlm_debug = osb->osb_dlm_debug; in ocfs2_dlm_shutdown_debug() local
2984 if (dlm_debug) { in ocfs2_dlm_shutdown_debug()
2985 debugfs_remove(dlm_debug->d_locking_state); in ocfs2_dlm_shutdown_debug()
2986 ocfs2_put_dlm_debug(dlm_debug); in ocfs2_dlm_shutdown_debug()