• Home
  • Raw
  • Download

Lines Matching refs:rlist

2563 void gfs2_rlist_add(struct gfs2_inode *ip, struct gfs2_rgrp_list *rlist,  in gfs2_rlist_add()  argument
2572 if (gfs2_assert_warn(sdp, !rlist->rl_ghs)) in gfs2_rlist_add()
2579 if (rlist->rl_rgrps) { in gfs2_rlist_add()
2580 rgd = rlist->rl_rgd[rlist->rl_rgrps - 1]; in gfs2_rlist_add()
2596 for (x = 0; x < rlist->rl_rgrps; x++) { in gfs2_rlist_add()
2597 if (rlist->rl_rgd[x] == rgd) { in gfs2_rlist_add()
2598 swap(rlist->rl_rgd[x], in gfs2_rlist_add()
2599 rlist->rl_rgd[rlist->rl_rgrps - 1]); in gfs2_rlist_add()
2604 if (rlist->rl_rgrps == rlist->rl_space) { in gfs2_rlist_add()
2605 new_space = rlist->rl_space + 10; in gfs2_rlist_add()
2610 if (rlist->rl_rgd) { in gfs2_rlist_add()
2611 memcpy(tmp, rlist->rl_rgd, in gfs2_rlist_add()
2612 rlist->rl_space * sizeof(struct gfs2_rgrpd *)); in gfs2_rlist_add()
2613 kfree(rlist->rl_rgd); in gfs2_rlist_add()
2616 rlist->rl_space = new_space; in gfs2_rlist_add()
2617 rlist->rl_rgd = tmp; in gfs2_rlist_add()
2620 rlist->rl_rgd[rlist->rl_rgrps++] = rgd; in gfs2_rlist_add()
2632 void gfs2_rlist_alloc(struct gfs2_rgrp_list *rlist) in gfs2_rlist_alloc() argument
2636 rlist->rl_ghs = kmalloc_array(rlist->rl_rgrps, in gfs2_rlist_alloc()
2639 for (x = 0; x < rlist->rl_rgrps; x++) in gfs2_rlist_alloc()
2640 gfs2_holder_init(rlist->rl_rgd[x]->rd_gl, in gfs2_rlist_alloc()
2642 &rlist->rl_ghs[x]); in gfs2_rlist_alloc()
2651 void gfs2_rlist_free(struct gfs2_rgrp_list *rlist) in gfs2_rlist_free() argument
2655 kfree(rlist->rl_rgd); in gfs2_rlist_free()
2657 if (rlist->rl_ghs) { in gfs2_rlist_free()
2658 for (x = 0; x < rlist->rl_rgrps; x++) in gfs2_rlist_free()
2659 gfs2_holder_uninit(&rlist->rl_ghs[x]); in gfs2_rlist_free()
2660 kfree(rlist->rl_ghs); in gfs2_rlist_free()
2661 rlist->rl_ghs = NULL; in gfs2_rlist_free()