Home
last modified time | relevance | path

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

/linux-6.1.9/fs/gfs2/
Drgrp.c40 struct gfs2_rgrpd *rgd; member
47 return rbm->rgd->rd_bits + rbm->bii; in rbm_bi()
52 BUG_ON(rbm->offset >= rbm->rgd->rd_data); in gfs2_rbm_to_block()
53 return rbm->rgd->rd_data0 + (rbm_bi(rbm)->bi_start * GFS2_NBBY) + in gfs2_rbm_to_block()
109 struct gfs2_sbd *sdp = rbm->rgd->rd_sbd; in gfs2_setbit()
114 (unsigned long long)rbm->rgd->rd_addr, bi->bi_start, in gfs2_setbit()
120 gfs2_consist_rgrpd(rbm->rgd); in gfs2_setbit()
279 if (!rgrp_contains_block(rbm->rgd, block)) in gfs2_rbm_from_block()
282 rbm->offset = block - rbm->rgd->rd_data0; in gfs2_rbm_from_block()
290 rbm->bii = rbm->offset / rbm->rgd->rd_sbd->sd_blocks_per_bitmap; in gfs2_rbm_from_block()
[all …]
Drgrp.h25 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);
49 extern void __gfs2_free_blocks(struct gfs2_inode *ip, struct gfs2_rgrpd *rgd,
51 extern void gfs2_free_meta(struct gfs2_inode *ip, struct gfs2_rgrpd *rgd,
53 extern void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip);
71 extern void gfs2_rgrp_dump(struct seq_file *seq, struct gfs2_rgrpd *rgd,
84 static inline int rgrp_contains_block(struct gfs2_rgrpd *rgd, u64 block) in rgrp_contains_block() argument
86 u64 first = rgd->rd_data0; in rgrp_contains_block()
[all …]
Dglops.c166 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in gfs2_rgrp_metasync() local
168 loff_t start = (rgd->rd_addr * bsize) & PAGE_MASK; in gfs2_rgrp_metasync()
169 loff_t end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in gfs2_rgrp_metasync()
193 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in rgrp_go_sync() local
205 gfs2_free_clones(rgd); in rgrp_go_sync()
223 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(gl); in rgrp_go_inval() local
225 loff_t start = (rgd->rd_addr * bsize) & PAGE_MASK; in rgrp_go_inval()
226 loff_t end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in rgrp_go_inval()
228 gfs2_rgrp_brelse(rgd); in rgrp_go_inval()
236 struct gfs2_rgrpd *rgd = gl->gl_object; in gfs2_rgrp_go_dump() local
[all …]
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()
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()
[all …]
Dtrans.h30 struct gfs2_rgrpd *rgd = ip->i_res.rs_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()
Dxattr.c235 struct gfs2_rgrpd *rgd; in ea_dealloc_unstuffed() local
262 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
263 if (!rgd) { in ea_dealloc_unstuffed()
268 error = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, in ea_dealloc_unstuffed()
273 error = gfs2_trans_begin(sdp, rgd->rd_length + RES_DINODE + in ea_dealloc_unstuffed()
290 gfs2_free_meta(ip, rgd, bstart, blen); in ea_dealloc_unstuffed()
299 gfs2_free_meta(ip, rgd, bstart, blen); in ea_dealloc_unstuffed()
1266 struct gfs2_rgrpd *rgd; in ea_dealloc_indirect() local
1319 rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in ea_dealloc_indirect()
1320 rg_blocks += rgd->rd_length; in ea_dealloc_indirect()
[all …]
Dutil.c473 void gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, in gfs2_consist_rgrpd_i() argument
476 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_consist_rgrpd_i()
480 gfs2_rgrp_dump(NULL, rgd, fs_id_buf); in gfs2_consist_rgrpd_i()
485 (unsigned long long)rgd->rd_addr, in gfs2_consist_rgrpd_i()
487 gfs2_dump_glock(NULL, rgd->rd_gl, 1); in gfs2_consist_rgrpd_i()
Dutil.h87 void gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd,
90 #define gfs2_consist_rgrpd(rgd) \ argument
91 gfs2_consist_rgrpd_i((rgd), __func__, __FILE__, __LINE__)
Dsuper.c752 static int statfs_slow_fill(struct gfs2_rgrpd *rgd, in statfs_slow_fill() argument
755 gfs2_rgrp_verify(rgd); in statfs_slow_fill()
756 sc->sc_total += rgd->rd_data; in statfs_slow_fill()
757 sc->sc_free += rgd->rd_free; in statfs_slow_fill()
758 sc->sc_dinodes += rgd->rd_dinodes; in statfs_slow_fill()
806 struct gfs2_rgrpd *rgd = in gfs2_statfs_slow() local
809 error = statfs_slow_fill(rgd, sc); in gfs2_statfs_slow()
1091 struct gfs2_rgrpd *rgd; in gfs2_dinode_dealloc() local
1108 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_dinode_dealloc()
1109 if (!rgd) { in gfs2_dinode_dealloc()
[all …]
Dtrace_gfs2.h547 TP_PROTO(const struct gfs2_inode *ip, struct gfs2_rgrpd *rgd,
550 TP_ARGS(ip, rgd, block, len, block_state),
565 __entry->dev = rgd->rd_gl->gl_name.ln_sbd->sd_vfs->s_dev;
570 __entry->rd_addr = rgd->rd_addr;
571 __entry->rd_free_clone = rgd->rd_free_clone;
572 __entry->rd_requested = rgd->rd_requested;
573 __entry->rd_reserved = rgd->rd_reserved;
Dbmap.c1444 struct gfs2_rgrpd *rgd; in sweep_bh_for_rgrps() local
1454 rgd = NULL; in sweep_bh_for_rgrps()
1456 rgd = gfs2_glock2rgrp(rd_gh->gh_gl); in sweep_bh_for_rgrps()
1469 if (rgd) { in sweep_bh_for_rgrps()
1470 if (!rgrp_contains_block(rgd, bn)) { in sweep_bh_for_rgrps()
1475 rgd = gfs2_blk2rgrpd(sdp, bn, true); in sweep_bh_for_rgrps()
1476 if (unlikely(!rgd)) { in sweep_bh_for_rgrps()
1480 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, in sweep_bh_for_rgrps()
1487 rgd == ip->i_res.rs_rgd) in sweep_bh_for_rgrps()
1499 jblocks_rqsted = rgd->rd_length + RES_DINODE + in sweep_bh_for_rgrps()
[all …]
Ddir.c2022 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in leaf_dealloc() local
2024 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()
Dinode.c1132 struct gfs2_rgrpd *rgd; in gfs2_unlink() local
1144 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_unlink()
1145 if (!rgd) in gfs2_unlink()
1148 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, LM_FLAG_NODE_SCOPE, ghs + 2); in gfs2_unlink()