aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/recover.c
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2006-08-18 12:54:25 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-08-21 09:50:09 -0400
commita345da3e8f28ff69e1b14df78f7ddc6e7b78b726 (patch)
treea1aa40c1aae01064b64b953c9b4a16180dd82be9 /fs/dlm/recover.c
parent15d00c0b91ca776b51b5ab04f79ab35b06670d30 (diff)
[DLM] dump rsb and locks on assert
Introduce new function dlm_dump_rsb() to call within assertions instead of dlm_print_rsb(). The new function dumps info about all locks on the rsb in addition to rsb details. Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/recover.c')
-rw-r--r--fs/dlm/recover.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/dlm/recover.c b/fs/dlm/recover.c
index 1a86dfc8034e..528a2a0fa329 100644
--- a/fs/dlm/recover.c
+++ b/fs/dlm/recover.c
@@ -490,7 +490,7 @@ static int recover_locks(struct dlm_rsb *r)
490 if (all_queues_empty(r)) 490 if (all_queues_empty(r))
491 goto out; 491 goto out;
492 492
493 DLM_ASSERT(!r->res_recover_locks_count, dlm_print_rsb(r);); 493 DLM_ASSERT(!r->res_recover_locks_count, dlm_dump_rsb(r););
494 494
495 error = recover_locks_queue(r, &r->res_grantqueue); 495 error = recover_locks_queue(r, &r->res_grantqueue);
496 if (error) 496 if (error)
@@ -557,7 +557,7 @@ int dlm_recover_locks(struct dlm_ls *ls)
557 557
558void dlm_recovered_lock(struct dlm_rsb *r) 558void dlm_recovered_lock(struct dlm_rsb *r)
559{ 559{
560 DLM_ASSERT(rsb_flag(r, RSB_NEW_MASTER), dlm_print_rsb(r);); 560 DLM_ASSERT(rsb_flag(r, RSB_NEW_MASTER), dlm_dump_rsb(r););
561 561
562 r->res_recover_locks_count--; 562 r->res_recover_locks_count--;
563 if (!r->res_recover_locks_count) { 563 if (!r->res_recover_locks_count) {