Lines Matching refs:mp

112 #define XFS_AGF_DADDR(mp)	((xfs_daddr_t)(1 << (mp)->m_sectbb_log))  argument
114 xfs_agblock_t xfs_agf_block(struct xfs_mount *mp);
115 #define XFS_AGF_BLOCK(mp) xfs_agf_block(mp) argument
117 #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp)) argument
167 #define XFS_AGI_DADDR(mp) ((xfs_daddr_t)(2 << (mp)->m_sectbb_log)) argument
169 xfs_agblock_t xfs_agi_block(struct xfs_mount *mp);
170 #define XFS_AGI_BLOCK(mp) xfs_agi_block(mp) argument
172 #define XFS_AGI_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp)) argument
179 #define XFS_AGFL_DADDR(mp) ((xfs_daddr_t)(3 << (mp)->m_sectbb_log)) argument
181 xfs_agblock_t xfs_agfl_block(struct xfs_mount *mp);
182 #define XFS_AGFL_BLOCK(mp) xfs_agfl_block(mp) argument
184 #define XFS_AGFL_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp)) argument
186 #define XFS_AGFL_SIZE(mp) ((mp)->m_sb.sb_sectsize / sizeof(xfs_agblock_t)) argument
234 int xfs_ag_maxlevels(struct xfs_mount *mp);
235 #define XFS_AG_MAXLEVELS(mp) xfs_ag_maxlevels(mp) argument
237 #define XFS_AG_MAXLEVELS(mp) ((mp)->m_ag_maxlevels) argument
240 int xfs_min_freelist(xfs_agf_t *a, struct xfs_mount *mp);
241 #define XFS_MIN_FREELIST(a,mp) xfs_min_freelist(a,mp) argument
243 #define XFS_MIN_FREELIST(a,mp) \ argument
246 INT_GET((a)->agf_levels[XFS_BTNUM_CNTi], ARCH_CONVERT), mp)
249 int xfs_min_freelist_pag(xfs_perag_t *pag, struct xfs_mount *mp);
250 #define XFS_MIN_FREELIST_PAG(pag,mp) xfs_min_freelist_pag(pag,mp) argument
252 #define XFS_MIN_FREELIST_PAG(pag,mp) \ argument
254 (uint_t)(pag)->pagf_levels[XFS_BTNUM_CNTi], mp)
257 int xfs_min_freelist_raw(int bl, int cl, struct xfs_mount *mp);
258 #define XFS_MIN_FREELIST_RAW(bl,cl,mp) xfs_min_freelist_raw(bl,cl,mp) argument
260 #define XFS_MIN_FREELIST_RAW(bl,cl,mp) \ argument
261 (MIN(bl + 1, XFS_AG_MAXLEVELS(mp)) + \
262 MIN(cl + 1, XFS_AG_MAXLEVELS(mp)))
266 xfs_fsblock_t xfs_agb_to_fsb(struct xfs_mount *mp, xfs_agnumber_t agno,
268 #define XFS_AGB_TO_FSB(mp,agno,agbno) xfs_agb_to_fsb(mp,agno,agbno) argument
270 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument
271 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
274 xfs_agnumber_t xfs_fsb_to_agno(struct xfs_mount *mp, xfs_fsblock_t fsbno);
275 #define XFS_FSB_TO_AGNO(mp,fsbno) xfs_fsb_to_agno(mp,fsbno) argument
277 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument
278 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog))
281 xfs_agblock_t xfs_fsb_to_agbno(struct xfs_mount *mp, xfs_fsblock_t fsbno);
282 #define XFS_FSB_TO_AGBNO(mp,fsbno) xfs_fsb_to_agbno(mp,fsbno) argument
284 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument
285 ((xfs_agblock_t)((fsbno) & XFS_MASK32LO((mp)->m_sb.sb_agblklog)))
289 xfs_daddr_t xfs_agb_to_daddr(struct xfs_mount *mp, xfs_agnumber_t agno,
291 #define XFS_AGB_TO_DADDR(mp,agno,agbno) xfs_agb_to_daddr(mp,agno,agbno) argument
293 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument
294 ((xfs_daddr_t)(XFS_FSB_TO_BB(mp, \
295 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno))))
303 xfs_daddr_t xfs_ag_daddr(struct xfs_mount *mp, xfs_agnumber_t agno,
305 #define XFS_AG_DADDR(mp,agno,d) xfs_ag_daddr(mp,agno,d) argument
307 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
334 void xfs_ag_check_daddr(struct xfs_mount *mp, xfs_daddr_t d, xfs_extlen_t len);
335 #define XFS_AG_CHECK_DADDR(mp,d,len) xfs_ag_check_daddr(mp,d,len) argument
337 #define XFS_AG_CHECK_DADDR(mp,d,len) \ argument
340 XFS_DADDR_TO_AGBNO(mp, d) != XFS_SB_DADDR) : \
341 ASSERT(XFS_DADDR_TO_AGNO(mp, d) == \
342 XFS_DADDR_TO_AGNO(mp, (d) + (len) - 1)))