Home
last modified time | relevance | path

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

/linux-6.15/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-6.15/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 Dreap.c696 xfs_rgblock_t rgbno, in xreap_rgextent_select() argument
703 xfs_rgblock_t bno = rgbno + 1; in xreap_rgextent_select()
712 error = xfs_rmap_has_other_keys(cur, rgbno, 1, rs->oinfo, in xreap_rgextent_select()
751 xfs_rgblock_t rgbno, in xreap_rgextent_iter() argument
770 rtbno = xfs_rgbno_to_rtb(sc->sr.rtg, rgbno); in xreap_rgextent_iter()
823 xfs_rgblock_t rgbno = xfs_rtb_to_rgbno(sc->mp, rtbno); in xreap_rtmeta_extent() local
824 xfs_rgblock_t rgbno_next = rgbno + len; in xreap_rtmeta_extent()
840 while (rgbno < rgbno_next) { in xreap_rtmeta_extent()
844 error = xreap_rgextent_select(rs, rgbno, rgbno_next, in xreap_rtmeta_extent()
849 error = xreap_rgextent_iter(rs, rgbno, &rglen, crosslinked); in xreap_rtmeta_extent()
[all …]
H A Drtbitmap_repair.c184 xfs_rgblock_t rgbno) in xrep_rtbitmap_mark_free() argument
199 if (!xfs_verify_rgbext(rtg, rtb->next_rgbno, rgbno - rtb->next_rgbno)) in xrep_rtbitmap_mark_free()
211 nextrtx = xfs_rgbno_to_rtx(mp, rgbno - 1) + 1; in xrep_rtbitmap_mark_free()
212 mod = xfs_rgbno_to_rtxoff(mp, rgbno - 1); in xrep_rtbitmap_mark_free()
220 rgbno - rtb->next_rgbno, &outcome); in xrep_rtbitmap_mark_free()
228 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 Drtrmap_repair.c228 xfs_rgblock_t rgbno; in xrep_rtrmap_visit_bmbt() local
240 rgbno = xfs_rtb_to_rgbno(mp, rec->br_startblock); in xrep_rtrmap_visit_bmbt()
243 rgbno == accum->rm_startblock + accum->rm_blockcount && in xrep_rtrmap_visit_bmbt()
254 accum->rm_startblock = rgbno; in xrep_rtrmap_visit_bmbt()
441 xfs_rgblock_t rgbno = start; in xrep_rtrmap_stash_run() local
443 return xrep_rtrmap_stash(rr, rgbno, len, rsr->owner, 0, 0); in xrep_rtrmap_stash_run()
H A Drepair.c1047 xfs_rgblock_t rgbno, in xrep_require_rtext_inuse() argument
1057 if (!xfs_zone_rgbno_is_valid(sc->sr.rtg, rgbno + len - 1)) in xrep_require_rtext_inuse()
1062 startrtx = xfs_rgbno_to_rtx(mp, rgbno); in xrep_require_rtext_inuse()
1063 endrtx = xfs_rgbno_to_rtx(mp, rgbno + len - 1); in xrep_require_rtext_inuse()
H A Drepair.h118 int xrep_require_rtext_inuse(struct xfs_scrub *sc, xfs_rgblock_t rgbno,
H A Dcommon.h16 xfs_rgblock_t rgbno, int *error);
H A Dcommon.c132 xfs_rgblock_t rgbno, in xchk_process_rt_error() argument
135 return __xchk_process_error(sc, rgno, rgbno, error, in xchk_process_rt_error()
H A Dtrace.h3812 __field(xfs_rgblock_t, rgbno)
3821 __entry->rgbno = rec->rm_startblock;
3830 __entry->rgbno,
/linux-6.15/fs/xfs/
H A Dxfs_discard.c650 xfs_rgblock_t rgbno; in xfs_trim_gather_rtgroup_extent() local
663 rgbno = xfs_rtx_to_rgbno(rtg, rec->ar_startext); in xfs_trim_gather_rtgroup_extent()
668 trace_xfs_discard_toosmall(rtg_group(rtg), rgbno, len); in xfs_trim_gather_rtgroup_extent()
676 if (xfs_extent_busy_search(rtg_group(rtg), rgbno, len)) { in xfs_trim_gather_rtgroup_extent()
677 trace_xfs_discard_busy(rtg_group(rtg), rgbno, len); in xfs_trim_gather_rtgroup_extent()
681 xfs_extent_busy_insert_discard(rtg_group(rtg), rgbno, len, in xfs_trim_gather_rtgroup_extent()
H A Dxfs_zone_alloc.c746 xfs_rgblock_t rgbno; in xfs_zone_alloc_blocks() local
755 rgbno = oz->oz_write_pointer; in xfs_zone_alloc_blocks()
759 trace_xfs_zone_alloc_blocks(oz, rgbno, count_fsb); in xfs_zone_alloc_blocks()
764 *sector += XFS_FSB_TO_BB(mp, rgbno); in xfs_zone_alloc_blocks()
881 xfs_rgnumber_t rgbno) in xfs_zone_rgbno_is_valid() argument
886 return rgbno < rtg->rtg_open_zone->oz_write_pointer; in xfs_zone_rgbno_is_valid()
H A Dxfs_zone_alloc.h42 bool xfs_zone_rgbno_is_valid(struct xfs_rtgroup *rtg, xfs_rgnumber_t rgbno);
H A Dxfs_rtalloc.c1801 xfs_agblock_t rgbno = xfs_rtx_to_rgbno(rtg, rtx); in xfs_rtalloc_check_busy() local
1809 xfs_rtxlen_to_extlen(mp, maxlen_rtx), &rgbno, &len, in xfs_rtalloc_check_busy()
1816 if (rgbno < min_rgbno && rgbno + len > min_rgbno) { in xfs_rtalloc_check_busy()
1817 diff = min_rgbno - rgbno; in xfs_rtalloc_check_busy()
1819 rgbno += diff; in xfs_rtalloc_check_busy()
1825 xfs_rgblock_t aligned_rgbno = roundup(rgbno, prod); in xfs_rtalloc_check_busy()
1827 diff = aligned_rgbno - rgbno; in xfs_rtalloc_check_busy()
1833 *resrtx = xfs_rgbno_to_rtx(mp, rgbno); in xfs_rtalloc_check_busy()
H A Dxfs_trace.h305 TP_PROTO(struct xfs_rtgroup *rtg, xfs_rgblock_t rgbno,
307 TP_ARGS(rtg, rgbno, len),
312 __field(xfs_rgblock_t, rgbno)
319 __entry->rgbno = rgbno;
326 __entry->rgbno,
331 TP_PROTO(struct xfs_open_zone *oz, xfs_rgblock_t rgbno,
333 TP_ARGS(oz, rgbno, len),
340 __field(xfs_rgblock_t, rgbno)
349 __entry->rgbno = rgbno;
358 __entry->rgbno,
[all …]