• Home
  • Raw
  • Download

Lines Matching refs:mp

90 #define XFS_AGF_DADDR(mp)	((xfs_daddr_t)(1 << (mp)->m_sectbb_log))  argument
91 #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp)) argument
94 extern int xfs_read_agf(struct xfs_mount *mp, struct xfs_trans *tp,
143 #define XFS_AGI_DADDR(mp) ((xfs_daddr_t)(2 << (mp)->m_sectbb_log)) argument
144 #define XFS_AGI_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp)) argument
147 extern int xfs_read_agi(struct xfs_mount *mp, struct xfs_trans *tp,
154 #define XFS_AGFL_DADDR(mp) ((xfs_daddr_t)(3 << (mp)->m_sectbb_log)) argument
155 #define XFS_AGFL_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp)) argument
156 #define XFS_AGFL_SIZE(mp) ((mp)->m_sb.sb_sectsize / sizeof(xfs_agblock_t)) argument
217 #define XFS_AG_MAXLEVELS(mp) ((mp)->m_ag_maxlevels) argument
218 #define XFS_MIN_FREELIST_RAW(bl,cl,mp) \ argument
219 (MIN(bl + 1, XFS_AG_MAXLEVELS(mp)) + MIN(cl + 1, XFS_AG_MAXLEVELS(mp)))
220 #define XFS_MIN_FREELIST(a,mp) \ argument
223 be32_to_cpu((a)->agf_levels[XFS_BTNUM_CNTi]), mp))
224 #define XFS_MIN_FREELIST_PAG(pag,mp) \ argument
227 (uint_t)(pag)->pagf_levels[XFS_BTNUM_CNTi], mp))
229 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument
230 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
231 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument
232 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog))
233 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument
234 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
235 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument
236 ((xfs_daddr_t)XFS_FSB_TO_BB(mp, \
237 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
238 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
244 #define XFS_AG_CHECK_DADDR(mp,d,len) \ argument
247 xfs_daddr_to_agbno(mp, d) != XFS_SB_DADDR) : \
248 ASSERT(xfs_daddr_to_agno(mp, d) == \
249 xfs_daddr_to_agno(mp, (d) + (len) - 1)))