| /fs/xfs/libxfs/ |
| A D | xfs_types.c | 147 xfs_rtblock_t rtbno) in xfs_verify_rtbno() argument 150 xfs_rgnumber_t rgno = xfs_rtb_to_rgno(mp, rtbno); in xfs_verify_rtbno() 151 xfs_rtxnum_t rtx = xfs_rtb_to_rtx(mp, rtbno); in xfs_verify_rtbno() 162 return rtbno < mp->m_sb.sb_rblocks; in xfs_verify_rtbno() 173 xfs_rtblock_t rtbno, in xfs_verify_rtbext() argument 176 if (rtbno + len <= rtbno) in xfs_verify_rtbext() 179 if (!xfs_verify_rtbno(mp, rtbno)) in xfs_verify_rtbext() 182 if (!xfs_verify_rtbno(mp, rtbno + len - 1)) in xfs_verify_rtbext() 186 xfs_rtb_to_rgno(mp, rtbno) != xfs_rtb_to_rgno(mp, rtbno + len - 1)) in xfs_verify_rtbext()
|
| A D | xfs_rtgroup.h | 207 xfs_rtblock_t rtbno) in xfs_rtb_to_rgno() argument 209 return xfs_fsb_to_gno(mp, rtbno, XG_TYPE_RTG); in xfs_rtb_to_rgno() 215 xfs_rtblock_t rtbno) in xfs_rtb_to_rgbno() argument 217 return xfs_fsb_to_gbno(mp, rtbno, XG_TYPE_RTG); in xfs_rtb_to_rgbno() 224 xfs_rtblock_t rtbno) in xfs_rtbno_is_group_start() argument 226 return (rtbno & mp->m_groups[XG_TYPE_RTG].blkmask) == 0; in xfs_rtbno_is_group_start() 245 xfs_rtblock_t rtbno) in xfs_rtb_to_daddr() argument 250 xfs_rgnumber_t rgno = xfs_rtb_to_rgno(mp, rtbno); in xfs_rtb_to_daddr() 252 rtbno = (xfs_rtblock_t)rgno * g->blocks + (rtbno & g->blkmask); in xfs_rtb_to_daddr() 255 return XFS_FSB_TO_BB(mp, g->start_fsb + rtbno); in xfs_rtb_to_daddr()
|
| A D | xfs_rtbitmap.h | 129 xfs_rtblock_t rtbno) in xfs_rtb_to_rtx() argument 132 rtbno &= mp->m_groups[XG_TYPE_RTG].blkmask; in xfs_rtb_to_rtx() 134 return rtbno >> mp->m_rtxblklog; in xfs_rtb_to_rtx() 135 return div_u64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_to_rtx() 151 xfs_rtblock_t rtbno) in xfs_rtb_to_rtxoff() argument 154 rtbno &= mp->m_groups[XG_TYPE_RTG].blkmask; in xfs_rtb_to_rtxoff() 156 return rtbno & mp->m_rtxblkmask; in xfs_rtb_to_rtxoff() 157 return do_div(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_to_rtxoff() 413 xfs_fsblock_t rtbno, xfs_filblks_t rtlen); 434 struct xfs_rtgroup *rtg, xfs_fsblock_t rtbno, in xfs_rtfree_blocks() argument
|
| A D | xfs_types.h | 276 bool xfs_verify_rtbno(struct xfs_mount *mp, xfs_rtblock_t rtbno); 277 bool xfs_verify_rtbext(struct xfs_mount *mp, xfs_rtblock_t rtbno,
|
| A D | xfs_rtbitmap.c | 1119 xfs_fsblock_t rtbno, in xfs_rtfree_blocks() argument 1135 mod = xfs_rtb_to_rtxoff(mp, rtbno); in xfs_rtfree_blocks() 1141 error = xfs_rtfree_extent(tp, rtg, xfs_rtb_to_rtx(mp, rtbno), in xfs_rtfree_blocks() 1148 xfs_rtb_to_rgbno(mp, rtbno), rtlen, 0); in xfs_rtfree_blocks()
|
| /fs/xfs/scrub/ |
| A D | scrub.h | 326 void xchk_xref_is_used_rt_space(struct xfs_scrub *sc, xfs_rtblock_t rtbno, 341 # define xchk_xref_is_used_rt_space(sc, rtbno, len) do { } while (0) argument 342 # define xchk_xref_has_no_rt_owner(sc, rtbno, len) do { } while (0) argument 343 # define xchk_xref_has_rt_owner(sc, rtbno, len) do { } while (0) argument
|
| A D | rtbitmap.c | 272 xfs_rtblock_t rtbno, in xchk_xref_is_used_rt_space() argument 286 xfs_rtb_to_rgbno(sc->mp, rtbno) + len - 1)) in xchk_xref_is_used_rt_space() 291 startext = xfs_rtb_to_rtx(sc->mp, rtbno); in xchk_xref_is_used_rt_space() 292 endext = xfs_rtb_to_rtx(sc->mp, rtbno + len - 1); in xchk_xref_is_used_rt_space()
|
| A D | reap.c | 756 xfs_rtblock_t rtbno; in xreap_rgextent_iter() local 770 rtbno = xfs_rgbno_to_rtb(sc->sr.rtg, rgbno); in xreap_rgextent_iter() 780 xfs_refcount_free_cow_extent(sc->tp, true, rtbno, *rglenp); in xreap_rgextent_iter() 794 xfs_refcount_free_cow_extent(sc->tp, true, rtbno, *rglenp); in xreap_rgextent_iter() 795 error = xfs_free_extent_later(sc->tp, rtbno, *rglenp, NULL, in xreap_rgextent_iter() 817 uint64_t rtbno, in xreap_rtmeta_extent() argument 823 xfs_rgblock_t rgbno = xfs_rtb_to_rgbno(sc->mp, rtbno); in xreap_rtmeta_extent() 834 sc->sr.rtg = xfs_rtgroup_get(sc->mp, xfs_rtb_to_rgno(sc->mp, rtbno)); in xreap_rtmeta_extent()
|
| A D | rtsummary.c | 176 xfs_rtblock_t rtbno; in xchk_rtsum_record_free() local 192 rtbno = xfs_rtx_to_rtb(rtg, rec->ar_startext); in xchk_rtsum_record_free() 195 if (!xfs_verify_rtbext(mp, rtbno, rtlen)) { in xchk_rtsum_record_free()
|
| /fs/xfs/ |
| A D | xfs_trace.h | 2837 xfs_rtblock_t rtbno, xfs_rtblock_t len), 2838 TP_ARGS(mp, rtbno, len), 2841 __field(xfs_rtblock_t, rtbno) 2846 __entry->rtbno = rtbno; 2851 __entry->rtbno, 2858 xfs_rtblock_t rtbno, xfs_rtblock_t len), \ 2859 TP_ARGS(mp, rtbno, len))
|