Home
last modified time | relevance | path

Searched refs:rgd (Results 1 – 14 of 14) sorted by relevance

/linux-4.19.296/fs/gfs2/
Drgrp.c107 (unsigned long long)rbm->rgd->rd_addr, bi->bi_start); in gfs2_setbit()
111 gfs2_consist_rgrpd(rbm->rgd); in gfs2_setbit()
272 u64 rblock = block - rbm->rgd->rd_data0; in gfs2_rbm_from_block()
276 if (block >= rbm->rgd->rd_data0 + rbm->rgd->rd_data) in gfs2_rbm_from_block()
288 rbm->bii = rbm->offset / rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block()
289 rbm->offset -= rbm->bii * rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block()
311 if (rbm->bii == rbm->rgd->rd_length - 1) /* at the last bitmap */ in gfs2_rbm_incr()
423 static u32 gfs2_bitcount(struct gfs2_rgrpd *rgd, const u8 *buffer, in gfs2_bitcount() argument
453 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd) in gfs2_rgrp_verify() argument
455 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_rgrp_verify()
[all …]
Drgrp.h29 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()
Dtrans.h33 struct gfs2_rgrpd *rgd = ip->i_res.rs_rbm.rgd; in gfs2_rg_blocks() local
35 if (requested < rgd->rd_length) in gfs2_rg_blocks()
37 return rgd->rd_length; in gfs2_rg_blocks()
Dglops.c151 struct gfs2_rgrpd *rgd; in rgrp_go_sync() local
155 rgd = gl->gl_object; in rgrp_go_sync()
156 if (rgd) in rgrp_go_sync()
157 gfs2_rgrp_brelse(rgd); in rgrp_go_sync()
172 rgd = gl->gl_object; in rgrp_go_sync()
173 if (rgd) in rgrp_go_sync()
174 gfs2_free_clones(rgd); in rgrp_go_sync()
192 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in rgrp_go_inval() local
194 if (rgd) in rgrp_go_inval()
195 gfs2_rgrp_brelse(rgd); in rgrp_go_inval()
[all …]
Dtrace_gfs2.h549 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;
Dutil.h72 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__)
Dutil.c179 int gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, int cluster_wide, in gfs2_consist_rgrpd_i() argument
182 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_consist_rgrpd_i()
188 (unsigned long long)rgd->rd_addr, in gfs2_consist_rgrpd_i()
Dincore.h128 struct gfs2_rgrpd *rgd; member
135 return rbm->rgd->rd_bits + rbm->bii; in rbm_bi()
140 BUG_ON(rbm->offset >= rbm->rgd->rd_data); in gfs2_rbm_to_block()
141 return rbm->rgd->rd_data0 + (rbm_bi(rbm)->bi_start * GFS2_NBBY) + in gfs2_rbm_to_block()
148 return (rbm1->rgd == rbm2->rgd) && (rbm1->bii == rbm2->bii) && in gfs2_rbm_eq()
Dlops.c75 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()
82 gfs2_rgrp_send_discards(sdp, rgd->rd_data0, bd->bd_bh, bi, 1, NULL); in maybe_release_space()
86 rgd->rd_free_clone = rgd->rd_free; in maybe_release_space()
87 rgd->rd_extfail_pt = rgd->rd_free; in maybe_release_space()
Dxattr.c232 struct gfs2_rgrpd *rgd; in ea_dealloc_unstuffed() local
259 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
260 if (!rgd) { in ea_dealloc_unstuffed()
265 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, &rg_gh); in ea_dealloc_unstuffed()
269 error = gfs2_trans_begin(sdp, rgd->rd_length + RES_DINODE + in ea_dealloc_unstuffed()
1305 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in ea_dealloc_indirect() local
1307 rg_blocks += rgd->rd_length; in ea_dealloc_indirect()
1370 struct gfs2_rgrpd *rgd; in ea_dealloc_block() local
1379 rgd = gfs2_blk2rgrpd(sdp, ip->i_eattr, 1); in ea_dealloc_block()
1380 if (!rgd) { in ea_dealloc_block()
[all …]
Dsuper.c1070 static int statfs_slow_fill(struct gfs2_rgrpd *rgd, in statfs_slow_fill() argument
1073 gfs2_rgrp_verify(rgd); in statfs_slow_fill()
1074 sc->sc_total += rgd->rd_data; in statfs_slow_fill()
1075 sc->sc_free += rgd->rd_free; in statfs_slow_fill()
1076 sc->sc_dinodes += rgd->rd_dinodes; in statfs_slow_fill()
1124 struct gfs2_rgrpd *rgd = in gfs2_statfs_slow() local
1127 error = statfs_slow_fill(rgd, sc); in gfs2_statfs_slow()
1493 struct gfs2_rgrpd *rgd; in gfs2_dinode_dealloc() local
1510 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_dinode_dealloc()
1511 if (!rgd) { in gfs2_dinode_dealloc()
[all …]
Dbmap.c1493 struct gfs2_rgrpd *rgd; in sweep_bh_for_rgrps() local
1503 rgd = NULL; in sweep_bh_for_rgrps()
1505 rgd = gfs2_glock2rgrp(rd_gh->gh_gl); in sweep_bh_for_rgrps()
1518 if (rgd) { in sweep_bh_for_rgrps()
1519 if (!rgrp_contains_block(rgd, bn)) { in sweep_bh_for_rgrps()
1524 rgd = gfs2_blk2rgrpd(sdp, bn, true); in sweep_bh_for_rgrps()
1525 if (unlikely(!rgd)) { in sweep_bh_for_rgrps()
1529 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, in sweep_bh_for_rgrps()
1536 rgd == ip->i_res.rs_rbm.rgd) in sweep_bh_for_rgrps()
1548 jblocks_rqsted = rgd->rd_length + RES_DINODE + in sweep_bh_for_rgrps()
Dinode.c1108 struct gfs2_rgrpd *rgd; in gfs2_unlink() local
1120 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_unlink()
1121 if (!rgd) in gfs2_unlink()
1124 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, 0, ghs + 2); in gfs2_unlink()
Ddir.c2024 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in leaf_dealloc() local
2026 rg_blocks += rgd->rd_length; in leaf_dealloc()