@@ -334,7 +334,7 @@ static struct dlm_rsb *create_rsb(struct dlm_ls *ls, char *name, int len)
334334{
335335 struct dlm_rsb * r ;
336336
337- r = allocate_rsb (ls , len );
337+ r = dlm_allocate_rsb (ls , len );
338338 if (!r )
339339 return NULL ;
340340
@@ -477,7 +477,7 @@ static int find_rsb(struct dlm_ls *ls, char *name, int namelen,
477477 error = _search_rsb (ls , name , namelen , bucket , 0 , & tmp );
478478 if (!error ) {
479479 write_unlock (& ls -> ls_rsbtbl [bucket ].lock );
480- free_rsb (r );
480+ dlm_free_rsb (r );
481481 r = tmp ;
482482 goto out ;
483483 }
@@ -518,7 +518,7 @@ static void toss_rsb(struct kref *kref)
518518 list_move (& r -> res_hashchain , & ls -> ls_rsbtbl [r -> res_bucket ].toss );
519519 r -> res_toss_time = jiffies ;
520520 if (r -> res_lvbptr ) {
521- free_lvb (r -> res_lvbptr );
521+ dlm_free_lvb (r -> res_lvbptr );
522522 r -> res_lvbptr = NULL ;
523523 }
524524}
@@ -588,7 +588,7 @@ static int create_lkb(struct dlm_ls *ls, struct dlm_lkb **lkb_ret)
588588 uint32_t lkid = 0 ;
589589 uint16_t bucket ;
590590
591- lkb = allocate_lkb (ls );
591+ lkb = dlm_allocate_lkb (ls );
592592 if (!lkb )
593593 return - ENOMEM ;
594594
@@ -682,8 +682,8 @@ static int __put_lkb(struct dlm_ls *ls, struct dlm_lkb *lkb)
682682
683683 /* for local/process lkbs, lvbptr points to caller's lksb */
684684 if (lkb -> lkb_lvbptr && is_master_copy (lkb ))
685- free_lvb (lkb -> lkb_lvbptr );
686- free_lkb (lkb );
685+ dlm_free_lvb (lkb -> lkb_lvbptr );
686+ dlm_free_lkb (lkb );
687687 return 1 ;
688688 } else {
689689 write_unlock (& ls -> ls_lkbtbl [bucket ].lock );
@@ -987,7 +987,7 @@ static int shrink_bucket(struct dlm_ls *ls, int b)
987987
988988 if (is_master (r ))
989989 dir_remove (r );
990- free_rsb (r );
990+ dlm_free_rsb (r );
991991 count ++ ;
992992 } else {
993993 write_unlock (& ls -> ls_rsbtbl [b ].lock );
@@ -1170,7 +1170,7 @@ static void set_lvb_lock(struct dlm_rsb *r, struct dlm_lkb *lkb)
11701170 return ;
11711171
11721172 if (!r -> res_lvbptr )
1173- r -> res_lvbptr = allocate_lvb (r -> res_ls );
1173+ r -> res_lvbptr = dlm_allocate_lvb (r -> res_ls );
11741174
11751175 if (!r -> res_lvbptr )
11761176 return ;
@@ -1202,7 +1202,7 @@ static void set_lvb_unlock(struct dlm_rsb *r, struct dlm_lkb *lkb)
12021202 return ;
12031203
12041204 if (!r -> res_lvbptr )
1205- r -> res_lvbptr = allocate_lvb (r -> res_ls );
1205+ r -> res_lvbptr = dlm_allocate_lvb (r -> res_ls );
12061206
12071207 if (!r -> res_lvbptr )
12081208 return ;
@@ -2985,7 +2985,7 @@ static int receive_lvb(struct dlm_ls *ls, struct dlm_lkb *lkb,
29852985
29862986 if (lkb -> lkb_exflags & DLM_LKF_VALBLK ) {
29872987 if (!lkb -> lkb_lvbptr )
2988- lkb -> lkb_lvbptr = allocate_lvb (ls );
2988+ lkb -> lkb_lvbptr = dlm_allocate_lvb (ls );
29892989 if (!lkb -> lkb_lvbptr )
29902990 return - ENOMEM ;
29912991 len = receive_extralen (ms );
@@ -3009,7 +3009,7 @@ static int receive_request_args(struct dlm_ls *ls, struct dlm_lkb *lkb,
30093009
30103010 if (lkb -> lkb_exflags & DLM_LKF_VALBLK ) {
30113011 /* 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 );
30133013 if (!lkb -> lkb_lvbptr )
30143014 return - ENOMEM ;
30153015 }
@@ -4183,7 +4183,7 @@ static int receive_rcom_lock_args(struct dlm_ls *ls, struct dlm_lkb *lkb,
41834183 lkb -> lkb_astaddr = (void * ) (long ) (rl -> rl_asts & AST_COMP );
41844184
41854185 if (lkb -> lkb_exflags & DLM_LKF_VALBLK ) {
4186- lkb -> lkb_lvbptr = allocate_lvb (ls );
4186+ lkb -> lkb_lvbptr = dlm_allocate_lvb (ls );
41874187 if (!lkb -> lkb_lvbptr )
41884188 return - ENOMEM ;
41894189 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,
43414341 }
43424342 }
43434343
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 ().
43454345 When DLM_IFL_USER is set, the dlm knows that this is a userspace
43464346 lock and that lkb_astparam is the dlm_user_args structure. */
43474347
0 commit comments