Home
last modified time | relevance | path

Searched refs:rgbno (Results 1 – 12 of 12) sorted by relevance

/linux/fs/xfs/libxfs/
H A Dxfs_rtgroup.h173 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 Dxfs_rtbitmap.h40 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 Drtbitmap.c101 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 Dscrub.h328 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 Drtbitmap_repair.c187 xfs_rgblock_t rgbno) in xrep_rtbitmap_mark_free() argument
202 if (!xfs_verify_rgbext(rtg, rtb->next_rgbno, rgbno - rtb->next_rgbno)) in xrep_rtbitmap_mark_free()
214 nextrtx = xfs_rgbno_to_rtx(mp, rgbno - 1) + 1; in xrep_rtbitmap_mark_free()
215 mod = xfs_rgbno_to_rtxoff(mp, rgbno - 1); in xrep_rtbitmap_mark_free()
223 rgbno - rtb->next_rgbno, &outcome); in xrep_rtbitmap_mark_free()
231 rgbno - rtb->next_rgbno, &outcome); in xrep_rtbitmap_mark_free()
H A Dbmap.c328 xfs_rgblock_t rgbno; in xchk_bmap_rt_iextent_xref() local
349 rgbno = xfs_rtb_to_rgbno(info->sc->mp, irec->br_startblock); in xchk_bmap_rt_iextent_xref()
353 xchk_bmap_xref_rmap(info, irec, rgbno); in xchk_bmap_rt_iextent_xref()
357 xchk_xref_is_only_rt_owned_by(info->sc, rgbno, in xchk_bmap_rt_iextent_xref()
359 xchk_xref_is_not_rt_shared(info->sc, rgbno, in xchk_bmap_rt_iextent_xref()
362 xchk_xref_is_not_rt_cow_staging(info->sc, rgbno, in xchk_bmap_rt_iextent_xref()
366 xchk_bmap_xref_rmap_cow(info, irec, rgbno); in xchk_bmap_rt_iextent_xref()
367 xchk_xref_is_only_rt_owned_by(info->sc, rgbno, in xchk_bmap_rt_iextent_xref()
369 xchk_xref_is_rt_cow_staging(info->sc, rgbno, in xchk_bmap_rt_iextent_xref()
371 xchk_xref_is_not_rt_shared(info->sc, rgbno, in xchk_bmap_rt_iextent_xref()
H A Drepair.h110 int xrep_require_rtext_inuse(struct xfs_scrub *sc, xfs_rgblock_t rgbno,
H A Dtrace.h3816 __field(xfs_rgblock_t, rgbno)
3825 __entry->rgbno = rec->rm_startblock;
3834 __entry->rgbno,
/linux/fs/xfs/
H A Dxfs_discard.c631 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 Dxfs_rtalloc.c1836 xfs_agblock_t rgbno = xfs_rtx_to_rgbno(rtg, rtx); in xfs_rtalloc_check_busy() local
1844 xfs_rtxlen_to_extlen(mp, maxlen_rtx), &rgbno, &len, in xfs_rtalloc_check_busy()
1851 if (rgbno < min_rgbno && rgbno + len > min_rgbno) { in xfs_rtalloc_check_busy()
1852 diff = min_rgbno - rgbno; in xfs_rtalloc_check_busy()
1854 rgbno += diff; in xfs_rtalloc_check_busy()
1860 xfs_rgblock_t aligned_rgbno = roundup(rgbno, prod); in xfs_rtalloc_check_busy()
1862 diff = aligned_rgbno - rgbno; in xfs_rtalloc_check_busy()
1868 *resrtx = xfs_rgbno_to_rtx(mp, rgbno); in xfs_rtalloc_check_busy()
H A Dxfs_zone_alloc.c978 xfs_rgnumber_t rgbno) in xfs_zone_rgbno_is_valid() argument
983 return rgbno < rtg->rtg_open_zone->oz_allocated; in xfs_zone_rgbno_is_valid()
H A Dxfs_trace.h400 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 …]