/Linux-v5.4/fs/gfs2/ |
D | rgrp.c | 101 struct gfs2_sbd *sdp = rbm->rgd->rd_sbd; in gfs2_setbit() 106 (unsigned long long)rbm->rgd->rd_addr, bi->bi_start, in gfs2_setbit() 112 gfs2_consist_rgrpd(rbm->rgd); in gfs2_setbit() 273 if (!rgrp_contains_block(rbm->rgd, block)) in gfs2_rbm_from_block() 276 rbm->offset = block - rbm->rgd->rd_data0; in gfs2_rbm_from_block() 284 rbm->bii = rbm->offset / rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block() 285 rbm->offset -= rbm->bii * rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block() 307 if (rbm->bii == rbm->rgd->rd_length - 1) /* at the last bitmap */ in gfs2_rbm_incr() 419 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer, in gfs2_bitcount() argument 449 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd) in gfs2_rgrp_verify() argument [all …]
|
D | rgrp.h | 25 extern void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd); 29 extern struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd); 33 extern void gfs2_free_clones(struct gfs2_rgrpd *rgd); 35 extern void gfs2_rgrp_brelse(struct gfs2_rgrpd *rgd); 51 extern void __gfs2_free_blocks(struct gfs2_inode *ip, struct gfs2_rgrpd *rgd, 53 extern void gfs2_free_meta(struct gfs2_inode *ip, struct gfs2_rgrpd *rgd, 55 extern void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip); 85 static inline int rgrp_contains_block(struct gfs2_rgrpd *rgd, u64 block) in rgrp_contains_block() argument 87 u64 first = rgd->rd_data0; in rgrp_contains_block() 88 u64 last = first + rgd->rd_data; in rgrp_contains_block()
|
D | trans.h | 30 struct gfs2_rgrpd *rgd = ip->i_res.rs_rbm.rgd; in gfs2_rg_blocks() local 32 if (requested < rgd->rd_length) in gfs2_rg_blocks() 34 return rgd->rd_length; in gfs2_rg_blocks()
|
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() 168 rgd = gl->gl_object; in rgrp_go_sync() 169 if (rgd) in rgrp_go_sync() 170 gfs2_free_clones(rgd); in rgrp_go_sync() 188 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in rgrp_go_inval() local 190 if (rgd) in rgrp_go_inval() 191 gfs2_rgrp_brelse(rgd); in rgrp_go_inval() [all …]
|
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() 767 struct gfs2_rgrpd *rgd; in buf_lo_scan_elements() local 769 rgd = gfs2_blk2rgrpd(sdp, blkno, false); in buf_lo_scan_elements() 770 if (rgd && rgd->rd_addr == blkno && in buf_lo_scan_elements() 771 rgd->rd_bits && rgd->rd_bits->bi_bh) { in buf_lo_scan_elements() 776 buffer_busy(rgd->rd_bits->bi_bh) ? 1 : 0, in buf_lo_scan_elements() [all …]
|
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() 185 gfs2_rgrp_dump(NULL, rgd->rd_gl, fs_id_buf); in gfs2_consist_rgrpd_i() 190 (unsigned long long)rgd->rd_addr, in gfs2_consist_rgrpd_i()
|
D | xattr.c | 229 struct gfs2_rgrpd *rgd; in ea_dealloc_unstuffed() local 256 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed() 257 if (!rgd) { in ea_dealloc_unstuffed() 262 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &rg_gh); in ea_dealloc_unstuffed() 266 error = gfs2_trans_begin(sdp, rgd->rd_length + RES_DINODE + in ea_dealloc_unstuffed() 283 gfs2_free_meta(ip, rgd, bstart, blen); in ea_dealloc_unstuffed() 292 gfs2_free_meta(ip, rgd, bstart, blen); in ea_dealloc_unstuffed() 1250 struct gfs2_rgrpd *rgd; in ea_dealloc_indirect() local 1303 rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in ea_dealloc_indirect() 1304 rg_blocks += rgd->rd_length; in ea_dealloc_indirect() [all …]
|
D | trace_gfs2.h | 549 TP_PROTO(const struct gfs2_inode *ip, struct gfs2_rgrpd *rgd, 552 TP_ARGS(ip, rgd, block, len, block_state), 566 __entry->dev = rgd->rd_gl->gl_name.ln_sbd->sd_vfs->s_dev; 571 __entry->rd_addr = rgd->rd_addr; 572 __entry->rd_free_clone = rgd->rd_free_clone; 573 __entry->rd_reserved = rgd->rd_reserved; 605 __entry->dev = rs->rs_rbm.rgd->rd_sbd->sd_vfs->s_dev; 606 __entry->rd_addr = rs->rs_rbm.rgd->rd_addr; 607 __entry->rd_free_clone = rs->rs_rbm.rgd->rd_free_clone; 608 __entry->rd_reserved = rs->rs_rbm.rgd->rd_reserved;
|
D | util.h | 69 int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, 72 #define gfs2_consist_rgrpd(rgd) \ argument 73 gfs2_consist_rgrpd_i((rgd), 0, __func__, __FILE__, __LINE__)
|
D | incore.h | 125 struct gfs2_rgrpd *rgd; member 132 return rbm->rgd->rd_bits + rbm->bii; in rbm_bi() 137 BUG_ON(rbm->offset >= rbm->rgd->rd_data); in gfs2_rbm_to_block() 138 return rbm->rgd->rd_data0 + (rbm_bi(rbm)->bi_start * GFS2_NBBY) + in gfs2_rbm_to_block() 145 return (rbm1->rgd == rbm2->rgd) && (rbm1->bii == rbm2->bii) && in gfs2_rbm_eq()
|
D | super.c | 818 static int statfs_slow_fill(struct gfs2_rgrpd *rgd, in statfs_slow_fill() argument 821 gfs2_rgrp_verify(rgd); in statfs_slow_fill() 822 sc->sc_total += rgd->rd_data; in statfs_slow_fill() 823 sc->sc_free += rgd->rd_free; in statfs_slow_fill() 824 sc->sc_dinodes += rgd->rd_dinodes; in statfs_slow_fill() 872 struct gfs2_rgrpd *rgd = in gfs2_statfs_slow() local 875 error = statfs_slow_fill(rgd, sc); in gfs2_statfs_slow() 1157 struct gfs2_rgrpd *rgd; in gfs2_dinode_dealloc() local 1174 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_dinode_dealloc() 1175 if (!rgd) { in gfs2_dinode_dealloc() [all …]
|
D | bmap.c | 1497 struct gfs2_rgrpd *rgd; in sweep_bh_for_rgrps() local 1507 rgd = NULL; in sweep_bh_for_rgrps() 1509 rgd = gfs2_glock2rgrp(rd_gh->gh_gl); in sweep_bh_for_rgrps() 1522 if (rgd) { in sweep_bh_for_rgrps() 1523 if (!rgrp_contains_block(rgd, bn)) { in sweep_bh_for_rgrps() 1528 rgd = gfs2_blk2rgrpd(sdp, bn, true); in sweep_bh_for_rgrps() 1529 if (unlikely(!rgd)) { in sweep_bh_for_rgrps() 1533 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, in sweep_bh_for_rgrps() 1540 rgd == ip->i_res.rs_rbm.rgd) in sweep_bh_for_rgrps() 1552 jblocks_rqsted = rgd->rd_length + RES_DINODE + in sweep_bh_for_rgrps() [all …]
|
D | dir.c | 2023 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in leaf_dealloc() local 2025 rg_blocks += rgd->rd_length; in leaf_dealloc() 2041 struct gfs2_rgrpd *rgd; in leaf_dealloc() local 2053 rgd = gfs2_blk2rgrpd(sdp, blk, true); in leaf_dealloc() 2054 gfs2_free_meta(dip, rgd, blk, 1); in leaf_dealloc()
|
D | inode.c | 1104 struct gfs2_rgrpd *rgd; in gfs2_unlink() local 1116 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_unlink() 1117 if (!rgd) in gfs2_unlink() 1120 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2); in gfs2_unlink()
|