Lines Matching refs:gfs2_rgrpd
409 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer, in gfs2_bitcount()
439 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd) in gfs2_rgrp_verify()
498 struct gfs2_rgrpd *gfs2_blk2rgrpd(struct gfs2_sbd *sdp, u64 blk, bool exact) in gfs2_blk2rgrpd()
501 struct gfs2_rgrpd *cur; in gfs2_blk2rgrpd()
506 cur = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_blk2rgrpd()
536 struct gfs2_rgrpd *gfs2_rgrpd_get_first(struct gfs2_sbd *sdp) in gfs2_rgrpd_get_first()
539 struct gfs2_rgrpd *rgd; in gfs2_rgrpd_get_first()
543 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_rgrpd_get_first()
556 struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd) in gfs2_rgrpd_get_next()
570 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_rgrpd_get_next()
582 void gfs2_free_clones(struct gfs2_rgrpd *rgd) in gfs2_free_clones()
611 struct gfs2_rgrpd *rgd; in __rs_deltree()
653 struct gfs2_rgrpd *rgd; in gfs2_rs_deltree()
686 static void return_all_reservations(struct gfs2_rgrpd *rgd) in return_all_reservations()
702 struct gfs2_rgrpd *rgd; in gfs2_clear_rgrpd()
706 rgd = rb_entry(n, struct gfs2_rgrpd, rd_node); in gfs2_clear_rgrpd()
738 static int compute_bitstructs(struct gfs2_rgrpd *rgd) in compute_bitstructs()
846 static int rgd_insert(struct gfs2_rgrpd *rgd) in rgd_insert()
853 struct gfs2_rgrpd *cur = rb_entry(*newn, struct gfs2_rgrpd, in rgd_insert()
884 struct gfs2_rgrpd *rgd; in read_rindex_entry()
949 struct gfs2_rgrpd *rgd, *first; in set_rgrp_preferences()
1040 static void gfs2_rgrp_in(struct gfs2_rgrpd *rgd, const void *buf) in gfs2_rgrp_in()
1067 static void gfs2_rgrp_out(struct gfs2_rgrpd *rgd, void *buf) in gfs2_rgrp_out()
1069 struct gfs2_rgrpd *next = gfs2_rgrpd_get_next(rgd); in gfs2_rgrp_out()
1092 static int gfs2_rgrp_lvb_valid(struct gfs2_rgrpd *rgd) in gfs2_rgrp_lvb_valid()
1128 static u32 count_unlinked(struct gfs2_rgrpd *rgd) in count_unlinked()
1163 static int gfs2_rgrp_bh_get(struct gfs2_rgrpd *rgd) in gfs2_rgrp_bh_get()
1230 static int update_rgrp_lvb(struct gfs2_rgrpd *rgd) in update_rgrp_lvb()
1255 struct gfs2_rgrpd *rgd = gh->gh_gl->gl_object; in gfs2_rgrp_go_lock()
1269 void gfs2_rgrp_brelse(struct gfs2_rgrpd *rgd) in gfs2_rgrp_brelse()
1363 struct gfs2_rgrpd *rgd; in gfs2_fitrim()
1364 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()
1801 static void try_rgrp_unlink(struct gfs2_rgrpd *rgd, u64 *last_unlinked, u64 skip) in try_rgrp_unlink()
1882 static bool gfs2_rgrp_congested(const struct gfs2_rgrpd *rgd, int loops) in gfs2_rgrp_congested()
1955 static bool gfs2_select_rgrp(struct gfs2_rgrpd **pos, const struct gfs2_rgrpd *begin) in gfs2_select_rgrp()
1957 struct gfs2_rgrpd *rgd = *pos; in gfs2_select_rgrp()
1975 static inline int fast_to_acquire(struct gfs2_rgrpd *rgd) in fast_to_acquire()
2007 struct gfs2_rgrpd *begin = NULL; in gfs2_inplace_reserve()
2185 static void rgblk_free(struct gfs2_sbd *sdp, struct gfs2_rgrpd *rgd, in rgblk_free()
2220 void gfs2_rgrp_dump(struct seq_file *seq, struct gfs2_rgrpd *rgd, in gfs2_rgrp_dump()
2247 static void gfs2_rgrp_error(struct gfs2_rgrpd *rgd) in gfs2_rgrp_error()
2275 struct gfs2_rgrpd *rgd = rbm->rgd; in gfs2_adjust_reservation()
2435 void __gfs2_free_blocks(struct gfs2_inode *ip, struct gfs2_rgrpd *rgd, in __gfs2_free_blocks()
2461 void gfs2_free_meta(struct gfs2_inode *ip, struct gfs2_rgrpd *rgd, in gfs2_free_meta()
2475 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()
2521 struct gfs2_rgrpd *rgd; in gfs2_check_blk_type()
2563 struct gfs2_rgrpd *rgd; in gfs2_rlist_add()
2564 struct gfs2_rgrpd **tmp; in gfs2_rlist_add()
2603 tmp = kcalloc(new_space, sizeof(struct gfs2_rgrpd *), in gfs2_rlist_add()
2608 rlist->rl_space * sizeof(struct gfs2_rgrpd *)); in gfs2_rlist_add()