Lines Matching full:mp

10 	struct xfs_mount	*mp;  member
22 struct xfs_mount *mp, in xfs_rtx_to_rtb() argument
25 if (mp->m_rtxblklog >= 0) in xfs_rtx_to_rtb()
26 return rtx << mp->m_rtxblklog; in xfs_rtx_to_rtb()
28 return rtx * mp->m_sb.sb_rextsize; in xfs_rtx_to_rtb()
33 struct xfs_mount *mp, in xfs_rtxlen_to_extlen() argument
36 if (mp->m_rtxblklog >= 0) in xfs_rtxlen_to_extlen()
37 return rtxlen << mp->m_rtxblklog; in xfs_rtxlen_to_extlen()
39 return rtxlen * mp->m_sb.sb_rextsize; in xfs_rtxlen_to_extlen()
45 struct xfs_mount *mp, in xfs_extlen_to_rtxmod() argument
48 if (mp->m_rtxblklog >= 0) in xfs_extlen_to_rtxmod()
49 return len & mp->m_rtxblkmask; in xfs_extlen_to_rtxmod()
51 return len % mp->m_sb.sb_rextsize; in xfs_extlen_to_rtxmod()
56 struct xfs_mount *mp, in xfs_extlen_to_rtxlen() argument
59 if (mp->m_rtxblklog >= 0) in xfs_extlen_to_rtxlen()
60 return len >> mp->m_rtxblklog; in xfs_extlen_to_rtxlen()
62 return len / mp->m_sb.sb_rextsize; in xfs_extlen_to_rtxlen()
68 struct xfs_mount *mp, in xfs_rtb_to_rtx() argument
71 if (likely(mp->m_rtxblklog >= 0)) in xfs_rtb_to_rtx()
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()
80 struct xfs_mount *mp, in xfs_rtb_to_rtxoff() argument
83 if (likely(mp->m_rtxblklog >= 0)) in xfs_rtb_to_rtxoff()
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()
95 struct xfs_mount *mp, in xfs_rtb_to_rtxup() argument
98 if (likely(mp->m_rtxblklog >= 0)) { in xfs_rtb_to_rtxup()
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()
112 struct xfs_mount *mp, in xfs_rtb_roundup_rtx() argument
115 return roundup_64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_roundup_rtx()
121 struct xfs_mount *mp, in xfs_rtb_rounddown_rtx() argument
124 return rounddown_64(rtbno, mp->m_sb.sb_rextsize); in xfs_rtb_rounddown_rtx()
130 struct xfs_mount *mp, in xfs_rtx_to_rbmblock() argument
133 return rtx >> mp->m_blkbit_log; in xfs_rtx_to_rbmblock()
139 struct xfs_mount *mp, in xfs_rtx_to_rbmword() argument
142 return (rtx >> XFS_NBWORDLOG) & (mp->m_blockwsize - 1); in xfs_rtx_to_rbmword()
148 struct xfs_mount *mp, in xfs_rbmblock_to_rtx() argument
151 return rbmoff << mp->m_blkbit_log; in xfs_rbmblock_to_rtx()
194 struct xfs_mount *mp, in xfs_rtsumoffs() argument
198 return log2_len * mp->m_sb.sb_rbmblocks + rbmoff; in xfs_rtsumoffs()
207 struct xfs_mount *mp, in xfs_rtsumoffs_to_block() argument
210 return XFS_B_TO_FSBT(mp, rsumoff * sizeof(xfs_suminfo_t)); in xfs_rtsumoffs_to_block()
219 struct xfs_mount *mp, in xfs_rtsumoffs_to_infoword() argument
222 unsigned int mask = mp->m_blockmask >> XFS_SUMINFOLOG; in xfs_rtsumoffs_to_infoword()
271 struct xfs_mount *mp,
294 int xfs_rtalloc_query_range(struct xfs_mount *mp, struct xfs_trans *tp,
297 int xfs_rtalloc_query_all(struct xfs_mount *mp, struct xfs_trans *tp,
300 int xfs_rtalloc_extent_is_free(struct xfs_mount *mp, struct xfs_trans *tp,
317 xfs_filblks_t xfs_rtbitmap_blockcount(struct xfs_mount *mp, xfs_rtbxlen_t
319 xfs_filblks_t xfs_rtsummary_blockcount(struct xfs_mount *mp,
325 void xfs_rtbitmap_lock(struct xfs_mount *mp);
326 void xfs_rtbitmap_unlock(struct xfs_mount *mp);
334 void xfs_rtbitmap_lock_shared(struct xfs_mount *mp,
336 void xfs_rtbitmap_unlock_shared(struct xfs_mount *mp,
348 xfs_rtbitmap_blockcount(struct xfs_mount *mp, xfs_rtbxlen_t rtextents) in xfs_rtbitmap_blockcount() argument
353 # define xfs_rtsummary_blockcount(mp, l, b) (0) argument
354 # define xfs_rtbitmap_lock(mp) do { } while (0) argument
356 # define xfs_rtbitmap_unlock(mp) do { } while (0) argument
357 # define xfs_rtbitmap_lock_shared(mp, lf) do { } while (0) argument
358 # define xfs_rtbitmap_unlock_shared(mp, lf) do { } while (0) argument