aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/dlmglue.c
diff options
context:
space:
mode:
authorJoel Becker <joel.becker@oracle.com>2008-01-29 19:59:55 -0500
committerMark Fasheh <mfasheh@suse.com>2008-04-18 11:56:04 -0400
commitcf0acdcd640e9466059e69951c557e90b4bee45a (patch)
treec54bccbed204770005265176500ae0549d4ca31a /fs/ocfs2/dlmglue.c
parent1693a5c0117f8ccd010a666f97aaf0f14fb0a0e4 (diff)
ocfs2: Abstract out a debugging function for underlying dlms.
dlmglue.c was still referencing a raw o2dlm lksb in one instance. Let's create a generic ocfs2_dlm_dump_lksb() function. This allows underlying DLMs to print whatever they want about their lock. We then move the o2dlm dump into stackglue.c where it belongs. Signed-off-by: Joel Becker <joel.becker@oracle.com> Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Diffstat (limited to 'fs/ocfs2/dlmglue.c')
-rw-r--r--fs/ocfs2/dlmglue.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/dlmglue.c b/fs/ocfs2/dlmglue.c
index b640423b936a..f41ff1c10ae8 100644
--- a/fs/ocfs2/dlmglue.c
+++ b/fs/ocfs2/dlmglue.c
@@ -2803,8 +2803,7 @@ static int ocfs2_drop_lock(struct ocfs2_super *osb,
2803 if (ret) { 2803 if (ret) {
2804 ocfs2_log_dlm_error("ocfs2_dlm_unlock", ret, lockres); 2804 ocfs2_log_dlm_error("ocfs2_dlm_unlock", ret, lockres);
2805 mlog(ML_ERROR, "lockres flags: %lu\n", lockres->l_flags); 2805 mlog(ML_ERROR, "lockres flags: %lu\n", lockres->l_flags);
2806 /* XXX Need to abstract this */ 2806 ocfs2_dlm_dump_lksb(&lockres->l_lksb);
2807 dlm_print_one_lock(lockres->l_lksb.lksb_o2dlm.lockid);
2808 BUG(); 2807 BUG();
2809 } 2808 }
2810 mlog(0, "lock %s, successfull return from ocfs2_dlm_unlock\n", 2809 mlog(0, "lock %s, successfull return from ocfs2_dlm_unlock\n",