| /linux/fs/xfs/libxfs/ |
| H A D | xfs_rtgroup.h | 173 xfs_rgblock_t rgbno) in xfs_verify_rgbno() argument 177 return xfs_verify_gbno(rtg_group(rtg), rgbno); in xfs_verify_rgbno() 188 xfs_rgblock_t rgbno, in xfs_verify_rgbext() argument 193 return xfs_verify_gbext(rtg_group(rtg), rgbno, len); in xfs_verify_rgbext() 199 xfs_rgblock_t rgbno) in xfs_rgbno_to_rtb() argument 201 return xfs_gbno_to_fsb(rtg_group(rtg), rgbno); in xfs_rgbno_to_rtb() 269 uint32_t rgbno; in xfs_daddr_to_rtb() local 271 rgno = div_u64_rem(bno, g->blocks, &rgbno); in xfs_daddr_to_rtb() 272 return ((xfs_rtblock_t)rgno << g->blklog) + rgbno; in xfs_daddr_to_rtb()
|
| H A D | xfs_rtbitmap.h | 40 xfs_rgblock_t rgbno) in xfs_rgbno_to_rtx() argument 43 return rgbno >> mp->m_rtxblklog; in xfs_rgbno_to_rtx() 44 return rgbno / mp->m_sb.sb_rextsize; in xfs_rgbno_to_rtx() 142 xfs_rgblock_t rgbno) in xfs_rgbno_to_rtxoff() argument 144 return rgbno % mp->m_sb.sb_rextsize; in xfs_rgbno_to_rtxoff()
|
| /linux/fs/xfs/scrub/ |
| H A D | rtbitmap.c | 101 xfs_rgblock_t rgbno = xfs_rtb_to_rgbno(sc->mp, startblock); in xchk_rtbitmap_xref() local 108 xchk_xref_has_no_rt_owner(sc, rgbno, blockcount); in xchk_rtbitmap_xref() 109 xchk_xref_is_not_rt_shared(sc, rgbno, blockcount); in xchk_rtbitmap_xref() 110 xchk_xref_is_not_rt_cow_staging(sc, rgbno, blockcount); in xchk_rtbitmap_xref() 112 if (rtb->next_free_rgbno < rgbno) in xchk_rtbitmap_xref() 114 rgbno - rtb->next_free_rgbno); in xchk_rtbitmap_xref() 115 rtb->next_free_rgbno = rgbno + blockcount; in xchk_rtbitmap_xref()
|
| H A D | scrub.h | 328 void xchk_xref_has_no_rt_owner(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 330 void xchk_xref_has_rt_owner(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 332 void xchk_xref_is_only_rt_owned_by(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 334 void xchk_xref_is_rt_cow_staging(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 336 void xchk_xref_is_not_rt_shared(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 338 void xchk_xref_is_not_rt_cow_staging(struct xfs_scrub *sc, xfs_rgblock_t rgbno,
|
| H A D | rtrmap_repair.c | 225 xfs_rgblock_t rgbno; in xrep_rtrmap_visit_bmbt() local 237 rgbno = xfs_rtb_to_rgbno(mp, rec->br_startblock); in xrep_rtrmap_visit_bmbt() 240 rgbno == accum->rm_startblock + accum->rm_blockcount && in xrep_rtrmap_visit_bmbt() 251 accum->rm_startblock = rgbno; in xrep_rtrmap_visit_bmbt() 438 xfs_rgblock_t rgbno = start; in xrep_rtrmap_stash_run() local 440 return xrep_rtrmap_stash(rr, rgbno, len, rsr->owner, 0, 0); in xrep_rtrmap_stash_run()
|
| H A D | repair.h | 110 int xrep_require_rtext_inuse(struct xfs_scrub *sc, xfs_rgblock_t rgbno,
|
| H A D | trace.h | 3849 __field(xfs_rgblock_t, rgbno) 3858 __entry->rgbno = rec->rm_startblock; 3867 __entry->rgbno,
|
| /linux/fs/xfs/ |
| H A D | xfs_discard.c | 631 xfs_rgblock_t rgbno; in xfs_trim_gather_rtgroup_extent() local 644 rgbno = xfs_rtx_to_rgbno(rtg, rec->ar_startext); in xfs_trim_gather_rtgroup_extent() 649 trace_xfs_discard_toosmall(rtg_group(rtg), rgbno, len); in xfs_trim_gather_rtgroup_extent() 657 if (xfs_extent_busy_search(rtg_group(rtg), rgbno, len)) { in xfs_trim_gather_rtgroup_extent() 658 trace_xfs_discard_busy(rtg_group(rtg), rgbno, len); in xfs_trim_gather_rtgroup_extent() 662 xfs_extent_busy_insert_discard(rtg_group(rtg), rgbno, len, in xfs_trim_gather_rtgroup_extent()
|
| H A D | xfs_rtalloc.c | 1828 xfs_agblock_t rgbno = xfs_rtx_to_rgbno(rtg, rtx); in xfs_rtalloc_check_busy() local 1836 xfs_rtxlen_to_extlen(mp, maxlen_rtx), &rgbno, &len, in xfs_rtalloc_check_busy() 1843 if (rgbno < min_rgbno && rgbno + len > min_rgbno) { in xfs_rtalloc_check_busy() 1844 diff = min_rgbno - rgbno; in xfs_rtalloc_check_busy() 1846 rgbno += diff; in xfs_rtalloc_check_busy() 1852 xfs_rgblock_t aligned_rgbno = roundup(rgbno, prod); in xfs_rtalloc_check_busy() 1854 diff = aligned_rgbno - rgbno; in xfs_rtalloc_check_busy() 1860 *resrtx = xfs_rgbno_to_rtx(mp, rgbno); in xfs_rtalloc_check_busy()
|
| H A D | xfs_zone_alloc.c | 937 xfs_rgnumber_t rgbno) in xfs_zone_rgbno_is_valid() argument 942 return rgbno < rtg->rtg_open_zone->oz_allocated; in xfs_zone_rgbno_is_valid()
|
| H A D | xfs_trace.h | 400 TP_PROTO(struct xfs_rtgroup *rtg, xfs_rgblock_t rgbno, 402 TP_ARGS(rtg, rgbno, len), 407 __field(xfs_rgblock_t, rgbno) 414 __entry->rgbno = rgbno; 421 __entry->rgbno, 426 TP_PROTO(struct xfs_open_zone *oz, xfs_rgblock_t rgbno, 428 TP_ARGS(oz, rgbno, len), 435 __field(xfs_rgblock_t, rgbno) 444 __entry->rgbno = rgbno; 453 __entry->rgbno, [all …]
|