Lines Matching refs:dc
356 struct dlm_debug_ctxt *dc; in dlm_debug_free() local
358 dc = container_of(kref, struct dlm_debug_ctxt, debug_refcnt); in dlm_debug_free()
360 kfree(dc); in dlm_debug_free()
363 static void dlm_debug_put(struct dlm_debug_ctxt *dc) in dlm_debug_put() argument
365 if (dc) in dlm_debug_put()
366 kref_put(&dc->debug_refcnt, dlm_debug_free); in dlm_debug_put()
369 static void dlm_debug_get(struct dlm_debug_ctxt *dc) in dlm_debug_get() argument
371 kref_get(&dc->debug_refcnt); in dlm_debug_get()
909 struct dlm_debug_ctxt *dc = dlm->dlm_debug_ctxt; in dlm_debug_init() local
912 dc->debug_state_dentry = debugfs_create_file(DLM_DEBUGFS_DLM_STATE, in dlm_debug_init()
916 if (!dc->debug_state_dentry) { in dlm_debug_init()
922 dc->debug_lockres_dentry = in dlm_debug_init()
927 if (!dc->debug_lockres_dentry) { in dlm_debug_init()
933 dc->debug_mle_dentry = debugfs_create_file(DLM_DEBUGFS_MLE_STATE, in dlm_debug_init()
937 if (!dc->debug_mle_dentry) { in dlm_debug_init()
943 dc->debug_purgelist_dentry = in dlm_debug_init()
948 if (!dc->debug_purgelist_dentry) { in dlm_debug_init()
953 dlm_debug_get(dc); in dlm_debug_init()
963 struct dlm_debug_ctxt *dc = dlm->dlm_debug_ctxt; in dlm_debug_shutdown() local
965 if (dc) { in dlm_debug_shutdown()
966 debugfs_remove(dc->debug_purgelist_dentry); in dlm_debug_shutdown()
967 debugfs_remove(dc->debug_mle_dentry); in dlm_debug_shutdown()
968 debugfs_remove(dc->debug_lockres_dentry); in dlm_debug_shutdown()
969 debugfs_remove(dc->debug_state_dentry); in dlm_debug_shutdown()
970 dlm_debug_put(dc); in dlm_debug_shutdown()