Lines Matching +full:11 +full:mp

438 #define	XFS_SB_BLOCK(mp)	XFS_HDR_BLOCK(mp, XFS_SB_DADDR)  argument
440 #define XFS_HDR_BLOCK(mp,d) ((xfs_agblock_t)XFS_BB_TO_FSBT(mp,d)) argument
441 #define XFS_DADDR_TO_FSB(mp,d) XFS_AGB_TO_FSB(mp, \ argument
442 xfs_daddr_to_agno(mp,d), xfs_daddr_to_agbno(mp,d))
443 #define XFS_FSB_TO_DADDR(mp,fsbno) XFS_AGB_TO_DADDR(mp, \ argument
444 XFS_FSB_TO_AGNO(mp,fsbno), XFS_FSB_TO_AGBNO(mp,fsbno))
449 #define XFS_FSS_TO_BB(mp,sec) ((sec) << (mp)->m_sectbb_log) argument
454 #define XFS_FSB_TO_BB(mp,fsbno) ((fsbno) << (mp)->m_blkbb_log) argument
455 #define XFS_BB_TO_FSB(mp,bb) \ argument
456 (((bb) + (XFS_FSB_TO_BB(mp,1) - 1)) >> (mp)->m_blkbb_log)
457 #define XFS_BB_TO_FSBT(mp,bb) ((bb) >> (mp)->m_blkbb_log) argument
462 #define XFS_FSB_TO_B(mp,fsbno) ((xfs_fsize_t)(fsbno) << (mp)->m_sb.sb_blocklog) argument
463 #define XFS_B_TO_FSB(mp,b) \ argument
464 ((((uint64_t)(b)) + (mp)->m_blockmask) >> (mp)->m_sb.sb_blocklog)
465 #define XFS_B_TO_FSBT(mp,b) (((uint64_t)(b)) >> (mp)->m_sb.sb_blocklog) argument
550 #define XFS_AGF_BTREEBLKS (1u << 11)
581 #define XFS_AGF_DADDR(mp) ((xfs_daddr_t)(1 << (mp)->m_sectbb_log)) argument
582 #define XFS_AGF_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGF_DADDR(mp)) argument
644 #define XFS_AGI_NUM_BITS_R1 11 /* end of the 1st agi logging region */
646 #define XFS_AGI_FREE_ROOT (1u << 11)
652 #define XFS_AGI_DADDR(mp) ((xfs_daddr_t)(2 << (mp)->m_sectbb_log)) argument
653 #define XFS_AGI_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGI_DADDR(mp)) argument
659 #define XFS_AGFL_DADDR(mp) ((xfs_daddr_t)(3 << (mp)->m_sectbb_log)) argument
660 #define XFS_AGFL_BLOCK(mp) XFS_HDR_BLOCK(mp, XFS_AGFL_DADDR(mp)) argument
673 #define XFS_AGB_TO_FSB(mp,agno,agbno) \ argument
674 (((xfs_fsblock_t)(agno) << (mp)->m_sb.sb_agblklog) | (agbno))
675 #define XFS_FSB_TO_AGNO(mp,fsbno) \ argument
676 ((xfs_agnumber_t)((fsbno) >> (mp)->m_sb.sb_agblklog))
677 #define XFS_FSB_TO_AGBNO(mp,fsbno) \ argument
678 ((xfs_agblock_t)((fsbno) & xfs_mask32lo((mp)->m_sb.sb_agblklog)))
679 #define XFS_AGB_TO_DADDR(mp,agno,agbno) \ argument
680 ((xfs_daddr_t)XFS_FSB_TO_BB(mp, \
681 (xfs_fsblock_t)(agno) * (mp)->m_sb.sb_agblocks + (agbno)))
682 #define XFS_AG_DADDR(mp,agno,d) (XFS_AGB_TO_DADDR(mp, agno, 0) + (d)) argument
688 #define XFS_AG_CHECK_DADDR(mp,d,len) \ argument
691 xfs_daddr_to_agbno(mp, d) != XFS_SB_DADDR) : \
692 ASSERT(xfs_daddr_to_agno(mp, d) == \
693 xfs_daddr_to_agno(mp, (d) + (len) - 1)))
984 #define XFS_DINODE_MAX_LOG 11
991 #define XFS_DINODE_SIZE(mp) \ argument
992 (xfs_has_v3inodes(mp) ? \
995 #define XFS_LITINO(mp) \ argument
996 ((mp)->m_sb.sb_inodesize - XFS_DINODE_SIZE(mp))
1003 #define XFS_DFORK_DSIZE(dip,mp) \ argument
1004 ((dip)->di_forkoff ? XFS_DFORK_BOFF(dip) : XFS_LITINO(mp))
1005 #define XFS_DFORK_ASIZE(dip,mp) \ argument
1006 ((dip)->di_forkoff ? XFS_LITINO(mp) - XFS_DFORK_BOFF(dip) : 0)
1007 #define XFS_DFORK_SIZE(dip,mp,w) \ argument
1009 XFS_DFORK_DSIZE(dip, mp) : \
1010 XFS_DFORK_ASIZE(dip, mp))
1012 #define XFS_DFORK_MAXEXT(dip, mp, w) \ argument
1013 (XFS_DFORK_SIZE(dip, mp, w) / sizeof(struct xfs_bmbt_rec))
1058 #define XFS_DIFLAG_EXTSIZE_BIT 11 /* inode extent size allocator hint */
1128 #define XFS_INO_OFFSET_BITS(mp) (mp)->m_sb.sb_inopblog argument
1129 #define XFS_INO_AGBNO_BITS(mp) (mp)->m_sb.sb_agblklog argument
1130 #define XFS_INO_AGINO_BITS(mp) ((mp)->m_ino_geo.agino_log) argument
1131 #define XFS_INO_AGNO_BITS(mp) (mp)->m_agno_log argument
1132 #define XFS_INO_BITS(mp) \ argument
1133 XFS_INO_AGNO_BITS(mp) + XFS_INO_AGINO_BITS(mp)
1134 #define XFS_INO_TO_AGNO(mp,i) \ argument
1135 ((xfs_agnumber_t)((i) >> XFS_INO_AGINO_BITS(mp)))
1136 #define XFS_INO_TO_AGINO(mp,i) \ argument
1137 ((xfs_agino_t)(i) & XFS_INO_MASK(XFS_INO_AGINO_BITS(mp)))
1138 #define XFS_INO_TO_AGBNO(mp,i) \ argument
1139 (((xfs_agblock_t)(i) >> XFS_INO_OFFSET_BITS(mp)) & \
1140 XFS_INO_MASK(XFS_INO_AGBNO_BITS(mp)))
1141 #define XFS_INO_TO_OFFSET(mp,i) \ argument
1142 ((int)(i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))
1143 #define XFS_INO_TO_FSB(mp,i) \ argument
1144 XFS_AGB_TO_FSB(mp, XFS_INO_TO_AGNO(mp,i), XFS_INO_TO_AGBNO(mp,i))
1145 #define XFS_AGINO_TO_INO(mp,a,i) \ argument
1146 (((xfs_ino_t)(a) << XFS_INO_AGINO_BITS(mp)) | (i))
1147 #define XFS_AGINO_TO_AGBNO(mp,i) ((i) >> XFS_INO_OFFSET_BITS(mp)) argument
1148 #define XFS_AGINO_TO_OFFSET(mp,i) \ argument
1149 ((i) & XFS_INO_MASK(XFS_INO_OFFSET_BITS(mp)))
1150 #define XFS_OFFBNO_TO_AGINO(mp,b,o) \ argument
1151 ((xfs_agino_t)(((b) << XFS_INO_OFFSET_BITS(mp)) | (o)))
1152 #define XFS_FSB_TO_INO(mp, b) ((xfs_ino_t)((b) << XFS_INO_OFFSET_BITS(mp))) argument
1153 #define XFS_AGB_TO_AGINO(mp, b) ((xfs_agino_t)((b) << XFS_INO_OFFSET_BITS(mp))) argument
1362 #define XFS_SYMLINK_BUF_SPACE(mp, bufsize) \ argument
1363 ((bufsize) - (xfs_has_crc((mp)) ? \
1399 #define XFS_BNO_BLOCK(mp) ((xfs_agblock_t)(XFS_AGFL_BLOCK(mp) + 1)) argument
1400 #define XFS_CNT_BLOCK(mp) ((xfs_agblock_t)(XFS_BNO_BLOCK(mp) + 1)) argument
1481 #define XFS_IBT_BLOCK(mp) ((xfs_agblock_t)(XFS_CNT_BLOCK(mp) + 1)) argument
1482 #define XFS_FIBT_BLOCK(mp) ((xfs_agblock_t)(XFS_IBT_BLOCK(mp) + 1)) argument
1580 #define XFS_RMAP_BLOCK(mp) \ argument
1581 (xfs_has_finobt(((mp))) ? \
1582 XFS_FIBT_BLOCK(mp) + 1 : \
1583 XFS_IBT_BLOCK(mp) + 1)
1591 unsigned int xfs_refc_block(struct xfs_mount *mp);
1808 #define XFS_ACL_MAX_ENTRIES(mp) \ argument
1809 (xfs_has_crc(mp) \
1818 #define XFS_ACL_MAX_SIZE(mp) \ argument
1819 XFS_ACL_SIZE(XFS_ACL_MAX_ENTRIES((mp)))