aboutsummaryrefslogtreecommitdiffstats
path: root/fs/dlm/lock.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/dlm/lock.c')
-rw-r--r--fs/dlm/lock.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/fs/dlm/lock.c b/fs/dlm/lock.c
index 63fe74df97c..ddb46281f34 100644
--- a/fs/dlm/lock.c
+++ b/fs/dlm/lock.c
@@ -334,7 +334,7 @@ static struct dlm_rsb *create_rsb(struct dlm_ls *ls, char *name, int len)
334{ 334{
335 struct dlm_rsb *r; 335 struct dlm_rsb *r;
336 336
337 r = allocate_rsb(ls, len); 337 r = dlm_allocate_rsb(ls, len);
338 if (!r) 338 if (!r)
339 return NULL; 339 return NULL;
340 340
@@ -477,7 +477,7 @@ static int find_rsb(struct dlm_ls *ls, char *name, int namelen,
477 error = _search_rsb(ls, name, namelen, bucket, 0, &tmp); 477 error = _search_rsb(ls, name, namelen, bucket, 0, &tmp);
478 if (!error) { 478 if (!error) {
479 write_unlock(&ls->ls_rsbtbl[bucket].lock); 479 write_unlock(&ls->ls_rsbtbl[bucket].lock);
480 free_rsb(r); 480 dlm_free_rsb(r);
481 r = tmp; 481 r = tmp;
482 goto out; 482 goto out;
483 } 483 }
@@ -518,7 +518,7 @@ static void toss_rsb(struct kref *kref)
518 list_move(&r->res_hashchain, &ls->ls_rsbtbl[r->res_bucket].toss); 518 list_move(&r->res_hashchain, &ls->ls_rsbtbl[r->res_bucket].toss);
519 r->res_toss_time = jiffies; 519 r->res_toss_time = jiffies;
520 if (r->res_lvbptr) { 520 if (r->res_lvbptr) {
521 free_lvb(r->res_lvbptr); 521 dlm_free_lvb(r->res_lvbptr);
522 r->res_lvbptr = NULL; 522 r->res_lvbptr = NULL;
523 } 523 }
524} 524}
@@ -588,7 +588,7 @@ static int create_lkb(struct dlm_ls *ls, struct dlm_lkb **lkb_ret)
588 uint32_t lkid = 0; 588 uint32_t lkid = 0;
589 uint16_t bucket; 589 uint16_t bucket;
590 590
591 lkb = allocate_lkb(ls); 591 lkb = dlm_allocate_lkb(ls);
592 if (!lkb) 592 if (!lkb)
593 return -ENOMEM; 593 return -ENOMEM;
594 594
@@ -682,8 +682,8 @@ static int __put_lkb(struct dlm_ls *ls, struct dlm_lkb *lkb)
682 682
683 /* for local/process lkbs, lvbptr points to caller's lksb */ 683 /* for local/process lkbs, lvbptr points to caller's lksb */
684 if (lkb->lkb_lvbptr && is_master_copy(lkb)) 684 if (lkb->lkb_lvbptr && is_master_copy(lkb))
685 free_lvb(lkb->lkb_lvbptr); 685 dlm_free_lvb(lkb->lkb_lvbptr);
686 free_lkb(lkb); 686 dlm_free_lkb(lkb);
687 return 1; 687 return 1;
688 } else { 688 } else {
689 write_unlock(&ls->ls_lkbtbl[bucket].lock); 689 write_unlock(&ls->ls_lkbtbl[bucket].lock);
@@ -987,7 +987,7 @@ static int shrink_bucket(struct dlm_ls *ls, int b)
987 987
988 if (is_master(r)) 988 if (is_master(r))
989 dir_remove(r); 989 dir_remove(r);
990 free_rsb(r); 990 dlm_free_rsb(r);
991 count++; 991 count++;
992 } else { 992 } else {
993 write_unlock(&ls->ls_rsbtbl[b].lock); 993 write_unlock(&ls->ls_rsbtbl[b].lock);
@@ -1170,7 +1170,7 @@ static void set_lvb_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
1170 return; 1170 return;
1171 1171
1172 if (!r->res_lvbptr) 1172 if (!r->res_lvbptr)
1173 r->res_lvbptr = allocate_lvb(r->res_ls); 1173 r->res_lvbptr = dlm_allocate_lvb(r->res_ls);
1174 1174
1175 if (!r->res_lvbptr) 1175 if (!r->res_lvbptr)
1176 return; 1176 return;
@@ -1202,7 +1202,7 @@ static void set_lvb_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb)
1202 return; 1202 return;
1203 1203
1204 if (!r->res_lvbptr) 1204 if (!r->res_lvbptr)
1205 r->res_lvbptr = allocate_lvb(r->res_ls); 1205 r->res_lvbptr = dlm_allocate_lvb(r->res_ls);
1206 1206
1207 if (!r->res_lvbptr) 1207 if (!r->res_lvbptr)
1208 return; 1208 return;
@@ -2985,7 +2985,7 @@ static int receive_lvb(struct dlm_ls *ls, struct dlm_lkb *lkb,
2985 2985
2986 if (lkb->lkb_exflags & DLM_LKF_VALBLK) { 2986 if (lkb->lkb_exflags & DLM_LKF_VALBLK) {
2987 if (!lkb->lkb_lvbptr) 2987 if (!lkb->lkb_lvbptr)
2988 lkb->lkb_lvbptr = allocate_lvb(ls); 2988 lkb->lkb_lvbptr = dlm_allocate_lvb(ls);
2989 if (!lkb->lkb_lvbptr) 2989 if (!lkb->lkb_lvbptr)
2990 return -ENOMEM; 2990 return -ENOMEM;
2991 len = receive_extralen(ms); 2991 len = receive_extralen(ms);
@@ -3009,7 +3009,7 @@ static int receive_request_args(struct dlm_ls *ls, struct dlm_lkb *lkb,
3009 3009
3010 if (lkb->lkb_exflags & DLM_LKF_VALBLK) { 3010 if (lkb->lkb_exflags & DLM_LKF_VALBLK) {
3011 /* lkb was just created so there won't be an lvb yet */ 3011 /* lkb was just created so there won't be an lvb yet */
3012 lkb->lkb_lvbptr = allocate_lvb(ls); 3012 lkb->lkb_lvbptr = dlm_allocate_lvb(ls);
3013 if (!lkb->lkb_lvbptr) 3013 if (!lkb->lkb_lvbptr)
3014 return -ENOMEM; 3014 return -ENOMEM;
3015 } 3015 }
@@ -4183,7 +4183,7 @@ static int receive_rcom_lock_args(struct dlm_ls *ls, struct dlm_lkb *lkb,
4183 lkb->lkb_astaddr = (void *) (long) (rl->rl_asts & AST_COMP); 4183 lkb->lkb_astaddr = (void *) (long) (rl->rl_asts & AST_COMP);
4184 4184
4185 if (lkb->lkb_exflags & DLM_LKF_VALBLK) { 4185 if (lkb->lkb_exflags & DLM_LKF_VALBLK) {
4186 lkb->lkb_lvbptr = allocate_lvb(ls); 4186 lkb->lkb_lvbptr = dlm_allocate_lvb(ls);
4187 if (!lkb->lkb_lvbptr) 4187 if (!lkb->lkb_lvbptr)
4188 return -ENOMEM; 4188 return -ENOMEM;
4189 lvblen = rc->rc_header.h_length - sizeof(struct dlm_rcom) - 4189 lvblen = rc->rc_header.h_length - sizeof(struct dlm_rcom) -
@@ -4341,7 +4341,7 @@ int dlm_user_request(struct dlm_ls *ls, struct dlm_user_args *ua,
4341 } 4341 }
4342 } 4342 }
4343 4343
4344 /* After ua is attached to lkb it will be freed by free_lkb(). 4344 /* After ua is attached to lkb it will be freed by dlm_free_lkb().
4345 When DLM_IFL_USER is set, the dlm knows that this is a userspace 4345 When DLM_IFL_USER is set, the dlm knows that this is a userspace
4346 lock and that lkb_astparam is the dlm_user_args structure. */ 4346 lock and that lkb_astparam is the dlm_user_args structure. */
4347 4347