Lines Matching refs:rgd
75 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in maybe_release_space() local
77 struct gfs2_bitmap *bi = rgd->rd_bits + index; in maybe_release_space()
79 rgrp_lock_local(rgd); in maybe_release_space()
83 gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); in maybe_release_space()
87 rgd->rd_free_clone = rgd->rd_free; in maybe_release_space()
88 BUG_ON(rgd->rd_free_clone < rgd->rd_reserved); in maybe_release_space()
89 rgd->rd_extfail_pt = rgd->rd_free; in maybe_release_space()
92 rgrp_unlock_local(rgd); in maybe_release_space()
770 struct gfs2_rgrpd *rgd; in obsolete_rgrp() local
773 rgd = gfs2_blk2rgrpd(sdp, blkno, false); in obsolete_rgrp()
774 if (rgd && rgd->rd_addr == blkno && in obsolete_rgrp()
775 rgd->rd_bits && rgd->rd_bits->bi_bh) { in obsolete_rgrp()
779 buffer_busy(rgd->rd_bits->bi_bh) ? 1 : 0, in obsolete_rgrp()
780 buffer_pinned(rgd->rd_bits->bi_bh), in obsolete_rgrp()
781 rgd->rd_igeneration, in obsolete_rgrp()
783 gfs2_dump_glock(NULL, rgd->rd_gl, true); in obsolete_rgrp()