Lines Matching refs:gfs2_rgrpd
414 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer, in gfs2_bitcount()
444 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd) in gfs2_rgrp_verify()
487 static inline int rgrp_contains_block(struct gfs2_rgrpd *rgd, u64 block) in rgrp_contains_block()
503 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd()
506 struct gfs2_rgrpd *cur; in gfs2_blk2rgrpd()
511 cur = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_blk2rgrpd()
541 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first()
544 struct gfs2_rgrpd *rgd; in gfs2_rgrpd_get_first()
548 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_rgrpd_get_first()
561 struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd) in gfs2_rgrpd_get_next()
575 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_rgrpd_get_next()
587 void gfs2_free_clones(struct gfs2_rgrpd *rgd) in gfs2_free_clones()
637 struct gfs2_rgrpd *rgd; in __rs_deltree()
670 struct gfs2_rgrpd *rgd; in gfs2_rs_deltree()
706 static void return_all_reservations(struct gfs2_rgrpd *rgd) in return_all_reservations()
722 struct gfs2_rgrpd *rgd; in gfs2_clear_rgrpd()
726 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_clear_rgrpd()
746 static void gfs2_rindex_print(const struct gfs2_rgrpd *rgd) in gfs2_rindex_print()
764 static int compute_bitstructs(struct gfs2_rgrpd *rgd) in compute_bitstructs()
863 static int rgd_insert(struct gfs2_rgrpd *rgd) in rgd_insert()
870 struct gfs2_rgrpd *cur = rb_entry(*newn, struct gfs2_rgrpd, in rgd_insert()
902 struct gfs2_rgrpd *rgd; in read_rindex_entry()
967 struct gfs2_rgrpd *rgd, *first; in set_rgrp_preferences()
1054 static void gfs2_rgrp_in(struct gfs2_rgrpd *rgd, const void *buf) in gfs2_rgrp_in()
1068 static void gfs2_rgrp_out(struct gfs2_rgrpd *rgd, void *buf) in gfs2_rgrp_out()
1080 static int gfs2_rgrp_lvb_valid(struct gfs2_rgrpd *rgd) in gfs2_rgrp_lvb_valid()
1104 static void update_rgrp_lvb_unlinked(struct gfs2_rgrpd *rgd, u32 change) in update_rgrp_lvb_unlinked()
1111 static u32 count_unlinked(struct gfs2_rgrpd *rgd) in count_unlinked()
1146 static int gfs2_rgrp_bh_get(struct gfs2_rgrpd *rgd) in gfs2_rgrp_bh_get()
1213 static int update_rgrp_lvb(struct gfs2_rgrpd *rgd) in update_rgrp_lvb()
1238 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock()
1254 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_unlock()
1348 struct gfs2_rgrpd *rgd; in gfs2_fitrim()
1349 struct gfs2_rgrpd *rgd_end; in gfs2_fitrim()
1444 struct gfs2_rgrpd *rgd = rs->rs_rbm.rgd; in rs_insert()
1485 static void rg_mblk_search(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip, in rg_mblk_search()
1539 static u64 gfs2_next_unreserved_block(struct gfs2_rgrpd *rgd, u64 block, in gfs2_next_unreserved_block()
1764 static void try_rgrp_unlink(struct gfs2_rgrpd *rgd, u64 *last_unlinked, u64 skip) in try_rgrp_unlink()
1847 static bool gfs2_rgrp_congested(const struct gfs2_rgrpd *rgd, int loops) in gfs2_rgrp_congested()
1911 static bool gfs2_select_rgrp(struct gfs2_rgrpd **pos, const struct gfs2_rgrpd *begin) in gfs2_select_rgrp()
1913 struct gfs2_rgrpd *rgd = *pos; in gfs2_select_rgrp()
1931 static inline int fast_to_acquire(struct gfs2_rgrpd *rgd) in fast_to_acquire()
1963 struct gfs2_rgrpd *begin = NULL; in gfs2_inplace_reserve()
2107 static unsigned char gfs2_get_block_type(struct gfs2_rgrpd *rgd, u64 block) in gfs2_get_block_type()
2162 static struct gfs2_rgrpd *rgblk_free(struct gfs2_sbd *sdp, u64 bstart, in rgblk_free()
2205 struct gfs2_rgrpd *rgd = gl->gl_object; in gfs2_rgrp_dump()
2223 static void gfs2_rgrp_error(struct gfs2_rgrpd *rgd) in gfs2_rgrp_error()
2248 struct gfs2_rgrpd *rgd = rbm->rgd; in gfs2_adjust_reservation()
2409 struct gfs2_rgrpd *rgd; in __gfs2_free_blocks()
2447 struct gfs2_rgrpd *rgd; in gfs2_unlink_di()
2460 static void gfs2_free_uninit_di(struct gfs2_rgrpd *rgd, u64 blkno) in gfs2_free_uninit_di()
2463 struct gfs2_rgrpd *tmp_rgd; in gfs2_free_uninit_di()
2484 void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip) in gfs2_free_di()
2505 struct gfs2_rgrpd *rgd; in gfs2_check_blk_type()
2541 struct gfs2_rgrpd *rgd; in gfs2_rlist_add()
2542 struct gfs2_rgrpd **tmp; in gfs2_rlist_add()
2566 tmp = kcalloc(new_space, sizeof(struct gfs2_rgrpd *), in gfs2_rlist_add()
2571 rlist->rl_space * sizeof(struct gfs2_rgrpd *)); in gfs2_rlist_add()