/fs/gfs2/ |
D | rgrp.c | 106 (unsigned long long)rbm->rgd->rd_addr, bi->bi_start); in gfs2_setbit() 110 gfs2_consist_rgrpd(rbm->rgd); in gfs2_setbit() 262 u64 rblock = block - rbm->rgd->rd_data0; in gfs2_rbm_from_block() 266 if (block >= rbm->rgd->rd_data0 + rbm->rgd->rd_data) in gfs2_rbm_from_block() 278 rbm->bii = rbm->offset / rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block() 279 rbm->offset -= rbm->bii * rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block() 301 if (rbm->bii == rbm->rgd->rd_length - 1) /* at the last bitmap */ in gfs2_rbm_incr() 413 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer, in gfs2_bitcount() argument 443 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd) in gfs2_rgrp_verify() argument 445 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify() [all …]
|
D | rgrp.h | 29 extern void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd); 33 extern struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd); 37 extern void gfs2_free_clones(struct gfs2_rgrpd *rgd); 39 extern void gfs2_rgrp_brelse(struct gfs2_rgrpd *rgd); 57 extern void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip); 86 static inline int rgrp_contains_block(struct gfs2_rgrpd *rgd, u64 block) in rgrp_contains_block() argument 88 u64 first = rgd->rd_data0; in rgrp_contains_block() 89 u64 last = first + rgd->rd_data; in rgrp_contains_block()
|
D | glops.c | 147 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_rgrp_brelse(rgd); in rgrp_go_sync() 167 rgd = gl->gl_object; in rgrp_go_sync() 168 if (rgd) in rgrp_go_sync() 169 gfs2_free_clones(rgd); in rgrp_go_sync() 187 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in rgrp_go_inval() local 189 if (rgd) in rgrp_go_inval() 190 gfs2_rgrp_brelse(rgd); in rgrp_go_inval() [all …]
|
D | trace_gfs2.h | 476 TP_PROTO(const struct gfs2_inode *ip, struct gfs2_rgrpd *rgd, 479 TP_ARGS(ip, rgd, block, len, block_state), 493 __entry->dev = rgd->rd_gl->gl_name.ln_sbd->sd_vfs->s_dev; 498 __entry->rd_addr = rgd->rd_addr; 499 __entry->rd_free_clone = rgd->rd_free_clone; 500 __entry->rd_reserved = rgd->rd_reserved; 532 __entry->dev = rs->rs_rbm.rgd->rd_sbd->sd_vfs->s_dev; 533 __entry->rd_addr = rs->rs_rbm.rgd->rd_addr; 534 __entry->rd_free_clone = rs->rs_rbm.rgd->rd_free_clone; 535 __entry->rd_reserved = rs->rs_rbm.rgd->rd_reserved;
|
D | util.h | 72 int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, 75 #define gfs2_consist_rgrpd(rgd) \ argument 76 gfs2_consist_rgrpd_i((rgd), 0, __func__, __FILE__, __LINE__)
|
D | util.c | 177 int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, in gfs2_consist_rgrpd_i() argument 180 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_consist_rgrpd_i() 186 (unsigned long long)rgd->rd_addr, in gfs2_consist_rgrpd_i()
|
D | lops.c | 74 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in maybe_release_space() local 76 struct gfs2_bitmap *bi = rgd->rd_bits + index; in maybe_release_space() 81 gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); in maybe_release_space() 85 rgd->rd_free_clone = rgd->rd_free; in maybe_release_space() 86 rgd->rd_extfail_pt = rgd->rd_free; in maybe_release_space()
|
D | xattr.c | 232 struct gfs2_rgrpd *rgd; in ea_dealloc_unstuffed() local 260 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed() 261 if (!rgd) { in ea_dealloc_unstuffed() 266 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &rg_gh); in ea_dealloc_unstuffed() 270 error = gfs2_trans_begin(sdp, rgd->rd_length + RES_DINODE + in ea_dealloc_unstuffed() 1335 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in ea_dealloc_indirect() local 1337 rg_blocks += rgd->rd_length; in ea_dealloc_indirect() 1400 struct gfs2_rgrpd *rgd; in ea_dealloc_block() local 1409 rgd = gfs2_blk2rgrpd(sdp, ip->i_eattr, 1); in ea_dealloc_block() 1410 if (!rgd) { in ea_dealloc_block() [all …]
|
D | super.c | 1056 static int statfs_slow_fill(struct gfs2_rgrpd *rgd, in statfs_slow_fill() argument 1059 gfs2_rgrp_verify(rgd); in statfs_slow_fill() 1060 sc->sc_total += rgd->rd_data; in statfs_slow_fill() 1061 sc->sc_free += rgd->rd_free; in statfs_slow_fill() 1062 sc->sc_dinodes += rgd->rd_dinodes; in statfs_slow_fill() 1110 struct gfs2_rgrpd *rgd = in gfs2_statfs_slow() local 1113 error = statfs_slow_fill(rgd, sc); in gfs2_statfs_slow() 1475 struct gfs2_rgrpd *rgd; in gfs2_dinode_dealloc() local 1492 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_dinode_dealloc() 1493 if (!rgd) { in gfs2_dinode_dealloc() [all …]
|
D | incore.h | 108 struct gfs2_rgrpd *rgd; member 115 return rbm->rgd->rd_bits + rbm->bii; in rbm_bi() 120 return rbm->rgd->rd_data0 + (rbm_bi(rbm)->bi_start * GFS2_NBBY) + in gfs2_rbm_to_block() 127 return (rbm1->rgd == rbm2->rgd) && (rbm1->bii == rbm2->bii) && in gfs2_rbm_eq()
|
D | bmap.c | 942 struct gfs2_rgrpd *rgd; in sweep_bh_for_rgrps() local 974 rgd = gfs2_glock2rgrp(rd_gh->gh_gl); in sweep_bh_for_rgrps() 978 rgd = gfs2_blk2rgrpd(sdp, bn, false); in sweep_bh_for_rgrps() 979 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, in sweep_bh_for_rgrps() 986 rgd == ip->i_res.rs_rbm.rgd) in sweep_bh_for_rgrps() 990 if (!rgrp_contains_block(rgd, bn)) { in sweep_bh_for_rgrps() 1003 jblocks_rqsted = rgd->rd_length + RES_DINODE + in sweep_bh_for_rgrps()
|
D | inode.c | 1107 struct gfs2_rgrpd *rgd; in gfs2_unlink() local 1119 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_unlink() 1120 if (!rgd) in gfs2_unlink() 1123 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2); in gfs2_unlink()
|
D | dir.c | 2036 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in leaf_dealloc() local 2038 rg_blocks += rgd->rd_length; in leaf_dealloc()
|