Lines Matching refs:rtbno
69 xfs_rtblock_t rtbno) in xfs_rtb_to_rtx() argument
72 return rtbno >> mp->m_rtxblklog; in xfs_rtb_to_rtx()
74 return div_u64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_to_rtx()
81 xfs_rtblock_t rtbno) in xfs_rtb_to_rtxoff() argument
84 return rtbno & mp->m_rtxblkmask; in xfs_rtb_to_rtxoff()
86 return do_div(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_to_rtxoff()
96 xfs_rtblock_t rtbno) in xfs_rtb_to_rtxup() argument
99 if (rtbno & mp->m_rtxblkmask) in xfs_rtb_to_rtxup()
100 return (rtbno >> mp->m_rtxblklog) + 1; in xfs_rtb_to_rtxup()
101 return rtbno >> mp->m_rtxblklog; in xfs_rtb_to_rtxup()
104 if (do_div(rtbno, mp->m_sb.sb_rextsize)) in xfs_rtb_to_rtxup()
105 rtbno++; in xfs_rtb_to_rtxup()
106 return rtbno; in xfs_rtb_to_rtxup()
113 xfs_rtblock_t rtbno) in xfs_rtb_roundup_rtx() argument
115 return roundup_64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_roundup_rtx()
122 xfs_rtblock_t rtbno) in xfs_rtb_rounddown_rtx() argument
124 return rounddown_64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_rounddown_rtx()
314 int xfs_rtfree_blocks(struct xfs_trans *tp, xfs_fsblock_t rtbno,