diff options
author | David Teigland <teigland@redhat.com> | 2006-01-20 03:47:07 -0500 |
---|---|---|
committer | Steven Whitehouse <steve@chygwyn.com> | 2006-01-20 03:47:07 -0500 |
commit | 901359256b2666f52a3a7d3f31927677e91b3a2a (patch) | |
tree | 24d4ee2c1ad63a0e6c3a303ad67eac3342772c4f /fs/dlm/recover.c | |
parent | ec5800246607183a1d7fd0bae5f087c12439e9e7 (diff) |
[DLM] Update DLM to the latest patch level
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steve Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/dlm/recover.c')
-rw-r--r-- | fs/dlm/recover.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/dlm/recover.c b/fs/dlm/recover.c index 1712c97bc229..b036ee7dcb32 100644 --- a/fs/dlm/recover.c +++ b/fs/dlm/recover.c | |||
@@ -420,7 +420,7 @@ int dlm_recover_master_reply(struct dlm_ls *ls, struct dlm_rcom *rc) | |||
420 | 420 | ||
421 | r = recover_list_find(ls, rc->rc_id); | 421 | r = recover_list_find(ls, rc->rc_id); |
422 | if (!r) { | 422 | if (!r) { |
423 | log_error(ls, "dlm_recover_master_reply no id %"PRIx64"", | 423 | log_error(ls, "dlm_recover_master_reply no id %llx", |
424 | rc->rc_id); | 424 | rc->rc_id); |
425 | goto out; | 425 | goto out; |
426 | } | 426 | } |
@@ -477,8 +477,8 @@ static int all_queues_empty(struct dlm_rsb *r) | |||
477 | if (!list_empty(&r->res_grantqueue) || | 477 | if (!list_empty(&r->res_grantqueue) || |
478 | !list_empty(&r->res_convertqueue) || | 478 | !list_empty(&r->res_convertqueue) || |
479 | !list_empty(&r->res_waitqueue)) | 479 | !list_empty(&r->res_waitqueue)) |
480 | return FALSE; | 480 | return 0; |
481 | return TRUE; | 481 | return 1; |
482 | } | 482 | } |
483 | 483 | ||
484 | static int recover_locks(struct dlm_rsb *r) | 484 | static int recover_locks(struct dlm_rsb *r) |
@@ -586,18 +586,18 @@ static void recover_lvb(struct dlm_rsb *r) | |||
586 | { | 586 | { |
587 | struct dlm_lkb *lkb, *high_lkb = NULL; | 587 | struct dlm_lkb *lkb, *high_lkb = NULL; |
588 | uint32_t high_seq = 0; | 588 | uint32_t high_seq = 0; |
589 | int lock_lvb_exists = FALSE; | 589 | int lock_lvb_exists = 0; |
590 | int big_lock_exists = FALSE; | 590 | int big_lock_exists = 0; |
591 | int lvblen = r->res_ls->ls_lvblen; | 591 | int lvblen = r->res_ls->ls_lvblen; |
592 | 592 | ||
593 | list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { | 593 | list_for_each_entry(lkb, &r->res_grantqueue, lkb_statequeue) { |
594 | if (!(lkb->lkb_exflags & DLM_LKF_VALBLK)) | 594 | if (!(lkb->lkb_exflags & DLM_LKF_VALBLK)) |
595 | continue; | 595 | continue; |
596 | 596 | ||
597 | lock_lvb_exists = TRUE; | 597 | lock_lvb_exists = 1; |
598 | 598 | ||
599 | if (lkb->lkb_grmode > DLM_LOCK_CR) { | 599 | if (lkb->lkb_grmode > DLM_LOCK_CR) { |
600 | big_lock_exists = TRUE; | 600 | big_lock_exists = 1; |
601 | goto setflag; | 601 | goto setflag; |
602 | } | 602 | } |
603 | 603 | ||
@@ -611,10 +611,10 @@ static void recover_lvb(struct dlm_rsb *r) | |||
611 | if (!(lkb->lkb_exflags & DLM_LKF_VALBLK)) | 611 | if (!(lkb->lkb_exflags & DLM_LKF_VALBLK)) |
612 | continue; | 612 | continue; |
613 | 613 | ||
614 | lock_lvb_exists = TRUE; | 614 | lock_lvb_exists = 1; |
615 | 615 | ||
616 | if (lkb->lkb_grmode > DLM_LOCK_CR) { | 616 | if (lkb->lkb_grmode > DLM_LOCK_CR) { |
617 | big_lock_exists = TRUE; | 617 | big_lock_exists = 1; |
618 | goto setflag; | 618 | goto setflag; |
619 | } | 619 | } |
620 | 620 | ||