Lines Matching refs:gfs2_rgrpd
423 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer, in gfs2_bitcount()
453 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd) in gfs2_rgrp_verify()
512 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd()
515 struct gfs2_rgrpd *cur; in gfs2_blk2rgrpd()
520 cur = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_blk2rgrpd()
550 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first()
553 struct gfs2_rgrpd *rgd; in gfs2_rgrpd_get_first()
557 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_rgrpd_get_first()
570 struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd) in gfs2_rgrpd_get_next()
584 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_rgrpd_get_next()
596 void gfs2_free_clones(struct gfs2_rgrpd *rgd) in gfs2_free_clones()
634 struct gfs2_rgrpd *rgd; in __rs_deltree()
667 struct gfs2_rgrpd *rgd; in gfs2_rs_deltree()
701 static void return_all_reservations(struct gfs2_rgrpd *rgd) in return_all_reservations()
717 struct gfs2_rgrpd *rgd; in gfs2_clear_rgrpd()
721 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_clear_rgrpd()
739 static void gfs2_rindex_print(const struct gfs2_rgrpd *rgd) in gfs2_rindex_print()
757 static int compute_bitstructs(struct gfs2_rgrpd *rgd) in compute_bitstructs()
856 static int rgd_insert(struct gfs2_rgrpd *rgd) in rgd_insert()
863 struct gfs2_rgrpd *cur = rb_entry(*newn, struct gfs2_rgrpd, in rgd_insert()
895 struct gfs2_rgrpd *rgd; in read_rindex_entry()
963 struct gfs2_rgrpd *rgd, *first; in set_rgrp_preferences()
1050 static void gfs2_rgrp_in(struct gfs2_rgrpd *rgd, const void *buf) in gfs2_rgrp_in()
1077 static void gfs2_rgrp_out(struct gfs2_rgrpd *rgd, void *buf) in gfs2_rgrp_out()
1079 struct gfs2_rgrpd *next = gfs2_rgrpd_get_next(rgd); in gfs2_rgrp_out()
1102 static int gfs2_rgrp_lvb_valid(struct gfs2_rgrpd *rgd) in gfs2_rgrp_lvb_valid()
1114 static u32 count_unlinked(struct gfs2_rgrpd *rgd) in count_unlinked()
1149 static int gfs2_rgrp_bh_get(struct gfs2_rgrpd *rgd) in gfs2_rgrp_bh_get()
1216 static int update_rgrp_lvb(struct gfs2_rgrpd *rgd) in update_rgrp_lvb()
1241 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock()
1255 void gfs2_rgrp_brelse(struct gfs2_rgrpd *rgd) in gfs2_rgrp_brelse()
1277 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_unlock()
1366 struct gfs2_rgrpd *rgd; in gfs2_fitrim()
1367 struct gfs2_rgrpd *rgd_end; in gfs2_fitrim()
1461 struct gfs2_rgrpd *rgd = rs->rs_rbm.rgd; in rs_insert()
1506 static inline u32 rgd_free(struct gfs2_rgrpd *rgd, struct gfs2_blkreserv *rs) in rgd_free()
1530 static void rg_mblk_search(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip, in rg_mblk_search()
1583 static u64 gfs2_next_unreserved_block(struct gfs2_rgrpd *rgd, u64 block, in gfs2_next_unreserved_block()
1805 static void try_rgrp_unlink(struct gfs2_rgrpd *rgd, u64 *last_unlinked, u64 skip) in try_rgrp_unlink()
1888 static bool gfs2_rgrp_congested(const struct gfs2_rgrpd *rgd, int loops) in gfs2_rgrp_congested()
1961 static bool gfs2_select_rgrp(struct gfs2_rgrpd **pos, const struct gfs2_rgrpd *begin) in gfs2_select_rgrp()
1963 struct gfs2_rgrpd *rgd = *pos; in gfs2_select_rgrp()
1981 static inline int fast_to_acquire(struct gfs2_rgrpd *rgd) in fast_to_acquire()
2013 struct gfs2_rgrpd *begin = NULL; in gfs2_inplace_reserve()
2194 static struct gfs2_rgrpd *rgblk_free(struct gfs2_sbd *sdp, u64 bstart, in rgblk_free()
2237 struct gfs2_rgrpd *rgd = gl->gl_object; in gfs2_rgrp_dump()
2255 static void gfs2_rgrp_error(struct gfs2_rgrpd *rgd) in gfs2_rgrp_error()
2280 struct gfs2_rgrpd *rgd = rbm->rgd; in gfs2_adjust_reservation()
2439 struct gfs2_rgrpd *rgd; in __gfs2_free_blocks()
2476 struct gfs2_rgrpd *rgd; in gfs2_unlink_di()
2488 void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip) in gfs2_free_di()
2491 struct gfs2_rgrpd *tmp_rgd; in gfs2_free_di()
2526 struct gfs2_rgrpd *rgd; in gfs2_check_blk_type()
2567 struct gfs2_rgrpd *rgd; in gfs2_rlist_add()
2568 struct gfs2_rgrpd **tmp; in gfs2_rlist_add()
2607 tmp = kcalloc(new_space, sizeof(struct gfs2_rgrpd *), in gfs2_rlist_add()
2612 rlist->rl_space * sizeof(struct gfs2_rgrpd *)); in gfs2_rlist_add()