Home
last modified time | relevance | path

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

/linux/fs/gfs2/
H A Drgrp.c308 struct gfs2_rgrpd *rgd = rbm->rgd; in gfs2_rbm_add() local
492 tmp = rgd->rd_data - rgd->rd_free - rgd->rd_dinodes; in gfs2_rgrp_verify()
975 rgd = gfs2_rgrpd_get_next(rgd); in set_rgrp_preferences()
981 rgd = gfs2_rgrpd_get_next(rgd); in set_rgrp_preferences()
982 if (!rgd || rgd == first) in set_rgrp_preferences()
985 } while (rgd && rgd != first); in set_rgrp_preferences()
1472 rgd = gfs2_rgrpd_get_next(rgd); in gfs2_fitrim()
2001 rgd = gfs2_rgrpd_get_next(rgd); in gfs2_select_rgrp()
2268 rbm.rgd = rgd; in rgblk_free()
2307 rgd->rd_free, rgd->rd_free_clone, rgd->rd_dinodes, in gfs2_rgrp_dump()
[all …]
H A Drgrp.h25 void gfs2_rgrp_verify(struct gfs2_rgrpd *rgd);
29 struct gfs2_rgrpd *gfs2_rgrpd_get_next(struct gfs2_rgrpd *rgd);
33 void gfs2_free_clones(struct gfs2_rgrpd *rgd);
35 void gfs2_rgrp_brelse(struct gfs2_rgrpd *rgd);
51 void gfs2_free_meta(struct gfs2_inode *ip, struct gfs2_rgrpd *rgd,
53 void gfs2_free_di(struct gfs2_rgrpd *rgd, struct gfs2_inode *ip);
71 void gfs2_rgrp_dump(struct seq_file *seq, struct gfs2_rgrpd *rgd,
87 u64 first = rgd->rd_data0; in rgrp_contains_block()
88 u64 last = first + rgd->rd_data; in rgrp_contains_block()
94 void rgrp_lock_local(struct gfs2_rgrpd *rgd);
[all …]
H A Dglops.c175 loff_t end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in gfs2_rgrp_metasync()
211 gfs2_free_clones(rgd); in rgrp_go_sync()
233 if (!rgd) in rgrp_go_inval()
236 end = PAGE_ALIGN((rgd->rd_addr + rgd->rd_length) * bsize) - 1; in rgrp_go_inval()
237 gfs2_rgrp_brelse(rgd); in rgrp_go_inval()
245 struct gfs2_rgrpd *rgd = gl->gl_object; in gfs2_rgrp_go_dump() local
247 if (rgd) in gfs2_rgrp_go_dump()
248 gfs2_rgrp_dump(seq, rgd, fs_id_buf); in gfs2_rgrp_go_dump()
265 struct gfs2_rgrpd *rgd; in gfs2_glock2rgrp() local
268 rgd = gl->gl_object; in gfs2_glock2rgrp()
[all …]
H A Dlops.c79 rgrp_lock_local(rgd); 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()
761 struct gfs2_rgrpd *rgd; in obsolete_rgrp() local
764 rgd = gfs2_blk2rgrpd(sdp, blkno, false); in obsolete_rgrp()
765 if (rgd && rgd->rd_addr == blkno && in obsolete_rgrp()
766 rgd->rd_bits && rgd->rd_bits->bi_bh) { in obsolete_rgrp()
771 buffer_pinned(rgd->rd_bits->bi_bh), in obsolete_rgrp()
[all …]
H A 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()
H A Dxattr.c239 struct gfs2_rgrpd *rgd; in ea_dealloc_unstuffed() local
266 rgd = gfs2_blk2rgrpd(sdp, bn, 1); in ea_dealloc_unstuffed()
267 if (!rgd) { in ea_dealloc_unstuffed()
294 gfs2_free_meta(ip, rgd, bstart, blen); in ea_dealloc_unstuffed()
303 gfs2_free_meta(ip, rgd, bstart, blen); in ea_dealloc_unstuffed()
1270 struct gfs2_rgrpd *rgd; in ea_dealloc_indirect() local
1324 rg_blocks += rgd->rd_length; in ea_dealloc_indirect()
1340 rgd = NULL; in ea_dealloc_indirect()
1364 gfs2_free_meta(ip, rgd, bstart, blen); in ea_dealloc_indirect()
1389 struct gfs2_rgrpd *rgd; in ea_dealloc_block() local
[all …]
H A Dutil.c465 void gfs2_consist_rgrpd_i(struct gfs2_rgrpd *rgd, in gfs2_consist_rgrpd_i() argument
468 struct gfs2_sbd *sdp = rgd->rd_sbd; in gfs2_consist_rgrpd_i()
472 gfs2_rgrp_dump(NULL, rgd, fs_id_buf); in gfs2_consist_rgrpd_i()
477 (unsigned long long)rgd->rd_addr, in gfs2_consist_rgrpd_i()
479 gfs2_dump_glock(NULL, rgd->rd_gl, 1); in gfs2_consist_rgrpd_i()
H A 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__)
H A Dsuper.c850 static int statfs_slow_fill(struct gfs2_rgrpd *rgd, in statfs_slow_fill() argument
853 gfs2_rgrp_verify(rgd); in statfs_slow_fill()
854 sc->sc_total += rgd->rd_data; in statfs_slow_fill()
855 sc->sc_free += rgd->rd_free; in statfs_slow_fill()
856 sc->sc_dinodes += rgd->rd_dinodes; in statfs_slow_fill()
904 struct gfs2_rgrpd *rgd = in gfs2_statfs_slow() local
907 error = statfs_slow_fill(rgd, sc); in gfs2_statfs_slow()
1199 struct gfs2_rgrpd *rgd; in gfs2_dinode_dealloc() local
1214 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_dinode_dealloc()
1215 if (!rgd) { in gfs2_dinode_dealloc()
[all …]
H A 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;
H A Dbmap.c1458 struct gfs2_rgrpd *rgd; in sweep_bh_for_rgrps() local
1468 rgd = NULL; in sweep_bh_for_rgrps()
1470 rgd = gfs2_glock2rgrp(rd_gh->gh_gl); in sweep_bh_for_rgrps()
1483 if (rgd) { in sweep_bh_for_rgrps()
1484 if (!rgrp_contains_block(rgd, bn)) { in sweep_bh_for_rgrps()
1489 rgd = gfs2_blk2rgrpd(sdp, bn, true); in sweep_bh_for_rgrps()
1490 if (unlikely(!rgd)) { in sweep_bh_for_rgrps()
1494 ret = gfs2_glock_nq_init(rgd->rd_gl, LM_ST_EXCLUSIVE, in sweep_bh_for_rgrps()
1501 rgd == ip->i_res.rs_rgd) in sweep_bh_for_rgrps()
1513 jblocks_rqsted = rgd->rd_length + RES_DINODE + in sweep_bh_for_rgrps()
[all …]
H A Ddir.c2026 struct gfs2_rgrpd *rgd = gfs2_glock2rgrp(rlist.rl_ghs[x].gh_gl); in leaf_dealloc() local
2028 rg_blocks += rgd->rd_length; in leaf_dealloc()
2045 struct gfs2_rgrpd *rgd; in leaf_dealloc() local
2057 rgd = gfs2_blk2rgrpd(sdp, blk, true); in leaf_dealloc()
2058 gfs2_free_meta(dip, rgd, blk, 1); in leaf_dealloc()
H A Dinode.c1155 struct gfs2_rgrpd *rgd; in gfs2_unlink() local
1167 rgd = gfs2_blk2rgrpd(sdp, ip->i_no_addr, 1); in gfs2_unlink()
1168 if (!rgd) in gfs2_unlink()
1171 gfs2_holder_init(rgd->rd_gl, LM_ST_EXCLUSIVE, LM_FLAG_NODE_SCOPE, &r_gh); in gfs2_unlink()