/fs/gfs2/ |
D | rgrp.c | 98 (unsigned long long)rbm->rgd->rd_addr, in gfs2_setbit() 103 gfs2_consist_rgrpd(rbm->rgd); in gfs2_setbit() 254 u64 rblock = block - rbm->rgd->rd_data0; in gfs2_rbm_from_block() 259 if (block >= rbm->rgd->rd_data0 + rbm->rgd->rd_data) in gfs2_rbm_from_block() 262 rbm->bi = rbm->rgd->rd_bits; in gfs2_rbm_from_block() 271 x = rbm->offset / rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block() 272 rbm->offset -= x * rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block() 381 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer, in gfs2_bitcount() argument 411 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd) in gfs2_rgrp_verify() argument 413 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() [all …]
|
D | rgrp.h | 28 extern void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd); 32 extern struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd); 36 extern void gfs2_free_clones(struct gfs2_rgrpd *rgd); 54 extern void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip);
|
D | trace_gfs2.h | 475 TP_PROTO(const struct gfs2_inode *ip, struct gfs2_rgrpd *rgd, 478 TP_ARGS(ip, rgd, block, len, block_state), 492 __entry->dev = rgd->rd_gl->gl_sbd->sd_vfs->s_dev; 497 __entry->rd_addr = rgd->rd_addr; 498 __entry->rd_free_clone = rgd->rd_free_clone; 499 __entry->rd_reserved = rgd->rd_reserved; 531 __entry->dev = rs->rs_rbm.rgd->rd_sbd->sd_vfs->s_dev; 532 __entry->rd_addr = rs->rs_rbm.rgd->rd_addr; 533 __entry->rd_free_clone = rs->rs_rbm.rgd->rd_free_clone; 534 __entry->rd_reserved = rs->rs_rbm.rgd->rd_reserved;
|
D | glops.c | 137 struct gfs2_rgrpd *rgd; in rgrp_go_sync() local 151 rgd = gl->gl_object; in rgrp_go_sync() 152 if (rgd) in rgrp_go_sync() 153 gfs2_free_clones(rgd); in rgrp_go_sync() 176 struct gfs2_rgrpd *rgd = (struct gfs2_rgrpd *)gl->gl_object; in rgrp_go_inval() local 177 rgd->rd_flags &= ~GFS2_RDF_UPTODATE; in rgrp_go_inval()
|
D | util.h | 71 int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, 74 #define gfs2_consist_rgrpd(rgd) \ argument 75 gfs2_consist_rgrpd_i((rgd), 0, __func__, __FILE__, __LINE__)
|
D | xattr.c | 230 struct gfs2_rgrpd *rgd; in ea_dealloc_unstuffed() local 258 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed() 259 if (!rgd) { in ea_dealloc_unstuffed() 264 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &rg_gh); in ea_dealloc_unstuffed() 268 error = gfs2_trans_begin(sdp, rgd->rd_length + RES_DINODE + in ea_dealloc_unstuffed() 1341 struct gfs2_rgrpd *rgd; in ea_dealloc_indirect() local 1342 rgd = rlist.rl_ghs[x].gh_gl->gl_object; in ea_dealloc_indirect() 1343 rg_blocks += rgd->rd_length; in ea_dealloc_indirect() 1406 struct gfs2_rgrpd *rgd; in ea_dealloc_block() local 1415 rgd = gfs2_blk2rgrpd(sdp, ip->i_eattr, 1); in ea_dealloc_block() [all …]
|
D | util.c | 176 int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, in gfs2_consist_rgrpd_i() argument 179 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_consist_rgrpd_i() 186 sdp->sd_fsname, (unsigned long long)rgd->rd_addr, in gfs2_consist_rgrpd_i()
|
D | super.c | 975 static int statfs_slow_fill(struct gfs2_rgrpd *rgd, in statfs_slow_fill() argument 978 gfs2_rgrp_verify(rgd); in statfs_slow_fill() 979 sc->sc_total += rgd->rd_data; in statfs_slow_fill() 980 sc->sc_free += rgd->rd_free; in statfs_slow_fill() 981 sc->sc_dinodes += rgd->rd_dinodes; in statfs_slow_fill() 1368 struct gfs2_rgrpd *rgd; in gfs2_dinode_dealloc() local 1385 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_dinode_dealloc() 1386 if (!rgd) { in gfs2_dinode_dealloc() 1392 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &gh); in gfs2_dinode_dealloc() 1401 gfs2_free_di(rgd, ip); in gfs2_dinode_dealloc()
|
D | incore.h | 103 struct gfs2_rgrpd *rgd; member 110 return rbm->rgd->rd_data0 + (rbm->bi->bi_start * GFS2_NBBY) + rbm->offset; in gfs2_rbm_to_block() 116 return (rbm1->rgd == rbm2->rgd) && (rbm1->bi == rbm2->bi) && in gfs2_rbm_eq()
|
D | lops.c | 73 struct gfs2_rgrpd *rgd = gl->gl_object; in maybe_release_space() local 75 struct gfs2_bitmap *bi = rgd->rd_bits + index; in maybe_release_space() 80 gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); in maybe_release_space() 84 rgd->rd_free_clone = rgd->rd_free; in maybe_release_space()
|
D | inode.c | 993 struct gfs2_rgrpd *rgd; in gfs2_unlink() local 1005 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_unlink() 1006 if (!rgd) in gfs2_unlink() 1009 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2); in gfs2_unlink()
|
D | bmap.c | 780 struct gfs2_rgrpd *rgd; in do_strip() local 781 rgd = rlist.rl_ghs[x].gh_gl->gl_object; in do_strip() 782 rg_blocks += rgd->rd_length; in do_strip()
|
D | dir.c | 1897 struct gfs2_rgrpd *rgd; in leaf_dealloc() local 1898 rgd = rlist.rl_ghs[x].gh_gl->gl_object; in leaf_dealloc() 1899 rg_blocks += rgd->rd_length; in leaf_dealloc()
|