| /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 | 46 /* Convert an rgbno into an rt extent number. */ 50 xfs_rgblock_t rgbno) in xfs_rtbxlen_to_blen() 53 return rgbno >> mp->m_rtxblklog; in xfs_rtbxlen_to_blen() 54 return rgbno / mp->m_sb.sb_rextsize; in xfs_rtbxlen_to_blen() 152 xfs_rgblock_t rgbno) in xfs_rtb_to_rtxoff() 154 return rgbno % mp->m_sb.sb_rextsize; in xfs_rtb_to_rtxoff() 40 xfs_rgbno_to_rtx(struct xfs_mount * mp,xfs_rgblock_t rgbno) xfs_rgbno_to_rtx() argument 142 xfs_rgbno_to_rtxoff(struct xfs_mount * mp,xfs_rgblock_t rgbno) xfs_rgbno_to_rtxoff() argument
|
| /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 | 327 void xchk_xref_has_no_rt_owner(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 329 void xchk_xref_has_rt_owner(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 331 void xchk_xref_is_only_rt_owned_by(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 333 void xchk_xref_is_rt_cow_staging(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 335 void xchk_xref_is_not_rt_shared(struct xfs_scrub *sc, xfs_rgblock_t rgbno, 337 void xchk_xref_is_not_rt_cow_staging(struct xfs_scrub *sc, xfs_rgblock_t rgbno,
|
| H A D | reap.c | 906 xfs_rgblock_t rgbno, in xreap_rgextent_select() argument 913 xfs_rgblock_t bno = rgbno + 1; in xreap_rgextent_select() 922 error = xfs_rmap_has_other_keys(cur, rgbno, 1, rs->oinfo, in xreap_rgextent_select() 947 trace_xreap_agextent_select(rtg_group(sc->sr.rtg), rgbno, len, in xreap_rgextent_select() 961 xfs_rgblock_t rgbno, in xreap_rgextent_iter() argument 980 rtbno = xfs_rgbno_to_rtb(sc->sr.rtg, rgbno); in xreap_rgextent_iter() 987 trace_xreap_dispose_unmap_extent(rtg_group(sc->sr.rtg), rgbno, in xreap_rgextent_iter() 995 trace_xreap_dispose_free_extent(rtg_group(sc->sr.rtg), rgbno, *rglenp); in xreap_rgextent_iter() 1091 xfs_rgblock_t rgbno = xfs_rtb_to_rgbno(sc->mp, rtbno); in xreap_rtmeta_extent() 1110 rgbno_next = rgbno in xreap_rtmeta_extent() 1096 xfs_rgblock_t rgbno = xfs_rtb_to_rgbno(sc->mp, rtbno); xreap_rtmeta_extent() local [all...] |
| H A D | bmap.c | 328 xfs_rgblock_t rgbno; in xchk_bmap_rt_iextent_xref() local 348 rgbno = xfs_rtb_to_rgbno(info->sc->mp, irec->br_startblock); in xchk_bmap_rt_iextent_xref() 352 xchk_bmap_xref_rmap(info, irec, rgbno); in xchk_bmap_rt_iextent_xref() 356 xchk_xref_is_only_rt_owned_by(info->sc, rgbno, in xchk_bmap_rt_iextent_xref() 358 xchk_xref_is_not_rt_shared(info->sc, rgbno, in xchk_bmap_rt_iextent_xref() 361 xchk_xref_is_not_rt_cow_staging(info->sc, rgbno, in xchk_bmap_rt_iextent_xref() 365 xchk_bmap_xref_rmap_cow(info, irec, rgbno); in xchk_bmap_rt_iextent_xref() 366 xchk_xref_is_only_rt_owned_by(info->sc, rgbno, in xchk_bmap_rt_iextent_xref() 368 xchk_xref_is_rt_cow_staging(info->sc, rgbno, in xchk_bmap_rt_iextent_xref() 370 xchk_xref_is_not_rt_shared(info->sc, rgbno, in xchk_bmap_rt_iextent_xref() [all...] |
| H A D | rtbitmap_repair.c | 187 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 D | repair.c | 1094 xfs_rgblock_t rgbno, in xrep_reset_perag_resv() 1104 if (!xfs_zone_rgbno_is_valid(sc->sr.rtg, rgbno + len - 1)) in xrep_reset_perag_resv() 1109 startrtx = xfs_rgbno_to_rtx(mp, rgbno); in xrep_reset_perag_resv() 1110 endrtx = xfs_rgbno_to_rtx(mp, rgbno + len - 1); in xrep_reset_perag_resv() 1062 xrep_require_rtext_inuse(struct xfs_scrub * sc,xfs_rgblock_t rgbno,xfs_filblks_t len) xrep_require_rtext_inuse() argument
|
| H A D | repair.h | 110 int xrep_require_rtext_inuse(struct xfs_scrub *sc, xfs_rgblock_t rgbno,
|
| H A D | common.h | 16 xfs_rgblock_t rgbno, int *error);
|
| H A D | trace.h | 3853 __field(xfs_rgblock_t, rgbno) 3862 __entry->rgbno = rec->rm_startblock; 3868 TP_printk("dev %d:%d rtdev %d:%d rgbno 0x%x fsbcount 0x%x owner 0x%llx fileoff 0x%llx flags 0x%x", 3871 __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 | 1836 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 D | xfs_zone_alloc.c | 1006 * Check if @rgbno in @rgb is a potentially valid block. It might still be in xfs_free_open_zones() 1012 xfs_rgnumber_t rgbno) in xfs_free_open_zones() 1017 return rgbno < rtg->rtg_open_zone->oz_allocated; in xfs_free_open_zones() 984 xfs_zone_rgbno_is_valid(struct xfs_rtgroup * rtg,xfs_rgnumber_t rgbno) xfs_zone_rgbno_is_valid() argument
|
| H A D | xfs_trace.h | 17 * rgbno: per-rtgroup block number in fs blocks 24 * space in a per-AG or a rgbno for space in a realtime group. 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; 417 TP_printk("dev %d:%d rgno 0x%x used 0x%x rgbno 0x%x len 0x%x", 421 __entry->rgbno, 426 TP_PROTO(struct xfs_open_zone *oz, xfs_rgblock_t rgbno, [all...] |