aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlm/dlmdebug.h
diff options
context:
space:
mode:
authorSunil Mushran <sunil.mushran@oracle.com>2008-03-10 18:16:24 -0400
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:09 -0400
commit4e3d24ed1a1285fe3289653aacc965642706bacb (patch)
tree91a65866f2b56da281e0863d107e726d59b39788 /fs/ocfs2/dlm/dlmdebug.h
parent007dce53a29ccffc000ab5373d188f73881390fd (diff)
ocfs2/dlm: Dumps the lockres' into a debugfs file
This patch dumps all the lockres' alongwith all the locks into a debugfs file. Useful for debugging. Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com> Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlm/dlmdebug.h')
-rw-r--r--fs/ocfs2/dlm/dlmdebug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/fs/ocfs2/dlm/dlmdebug.h b/fs/ocfs2/dlm/dlmdebug.h
index 94cc10a4e19c..7c5b2b0a05ed 100644
--- a/fs/ocfs2/dlm/dlmdebug.h
+++ b/fs/ocfs2/dlm/dlmdebug.h
@@ -30,6 +30,7 @@
30struct dlm_debug_ctxt { 30struct dlm_debug_ctxt {
31 struct kref debug_refcnt; 31 struct kref debug_refcnt;
32 struct dentry *debug_state_dentry; 32 struct dentry *debug_state_dentry;
33 struct dentry *debug_lockres_dentry;
33}; 34};
34 35
35struct debug_buffer { 36struct debug_buffer {
@@ -37,6 +38,13 @@ struct debug_buffer {
37 char *buf; 38 char *buf;
38}; 39};
39 40
41struct debug_lockres {
42 int dl_len;
43 char *dl_buf;
44 struct dlm_ctxt *dl_ctxt;
45 struct dlm_lock_resource *dl_res;
46};
47
40int dlm_debug_init(struct dlm_ctxt *dlm); 48int dlm_debug_init(struct dlm_ctxt *dlm);
41void dlm_debug_shutdown(struct dlm_ctxt *dlm); 49void dlm_debug_shutdown(struct dlm_ctxt *dlm);
42 50