diff options
Diffstat (limited to 'fs/dlm/lockspace.c')
-rw-r--r-- | fs/dlm/lockspace.c | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/fs/dlm/lockspace.c b/fs/dlm/lockspace.c index 5c108c49cb8c..b180fdc51085 100644 --- a/fs/dlm/lockspace.c +++ b/fs/dlm/lockspace.c | |||
@@ -24,14 +24,6 @@ | |||
24 | #include "recover.h" | 24 | #include "recover.h" |
25 | #include "requestqueue.h" | 25 | #include "requestqueue.h" |
26 | 26 | ||
27 | #ifdef CONFIG_DLM_DEBUG | ||
28 | int dlm_create_debug_file(struct dlm_ls *ls); | ||
29 | void dlm_delete_debug_file(struct dlm_ls *ls); | ||
30 | #else | ||
31 | static inline int dlm_create_debug_file(struct dlm_ls *ls) { return 0; } | ||
32 | static inline void dlm_delete_debug_file(struct dlm_ls *ls) { } | ||
33 | #endif | ||
34 | |||
35 | static int ls_count; | 27 | static int ls_count; |
36 | static struct mutex ls_lock; | 28 | static struct mutex ls_lock; |
37 | static struct list_head lslist; | 29 | static struct list_head lslist; |
@@ -684,9 +676,9 @@ static int release_lockspace(struct dlm_ls *ls, int force) | |||
684 | dlm_del_ast(lkb); | 676 | dlm_del_ast(lkb); |
685 | 677 | ||
686 | if (lkb->lkb_lvbptr && lkb->lkb_flags & DLM_IFL_MSTCPY) | 678 | if (lkb->lkb_lvbptr && lkb->lkb_flags & DLM_IFL_MSTCPY) |
687 | free_lvb(lkb->lkb_lvbptr); | 679 | dlm_free_lvb(lkb->lkb_lvbptr); |
688 | 680 | ||
689 | free_lkb(lkb); | 681 | dlm_free_lkb(lkb); |
690 | } | 682 | } |
691 | } | 683 | } |
692 | dlm_astd_resume(); | 684 | dlm_astd_resume(); |
@@ -704,7 +696,7 @@ static int release_lockspace(struct dlm_ls *ls, int force) | |||
704 | res_hashchain); | 696 | res_hashchain); |
705 | 697 | ||
706 | list_del(&rsb->res_hashchain); | 698 | list_del(&rsb->res_hashchain); |
707 | free_rsb(rsb); | 699 | dlm_free_rsb(rsb); |
708 | } | 700 | } |
709 | 701 | ||
710 | head = &ls->ls_rsbtbl[i].toss; | 702 | head = &ls->ls_rsbtbl[i].toss; |
@@ -712,7 +704,7 @@ static int release_lockspace(struct dlm_ls *ls, int force) | |||
712 | rsb = list_entry(head->next, struct dlm_rsb, | 704 | rsb = list_entry(head->next, struct dlm_rsb, |
713 | res_hashchain); | 705 | res_hashchain); |
714 | list_del(&rsb->res_hashchain); | 706 | list_del(&rsb->res_hashchain); |
715 | free_rsb(rsb); | 707 | dlm_free_rsb(rsb); |
716 | } | 708 | } |
717 | } | 709 | } |
718 | 710 | ||