|
|
| version 1.29, 2005/10/21 18:08:47 | version 1.30, 2007/02/07 02:51:06 |
|---|---|
| Line 58 typedef struct xfs_btree_sblock xfs_allo | Line 58 typedef struct xfs_btree_sblock xfs_allo |
| /* | /* |
| * Real block structures have a size equal to the disk block size. | * Real block structures have a size equal to the disk block size. |
| */ | */ |
| #define XFS_ALLOC_BLOCK_SIZE(lev,cur) (1 << (cur)->bc_blocklog) | |
| #define XFS_ALLOC_BLOCK_MAXRECS(lev,cur) ((cur)->bc_mp->m_alloc_mxr[lev != 0]) | #define XFS_ALLOC_BLOCK_MAXRECS(lev,cur) ((cur)->bc_mp->m_alloc_mxr[lev != 0]) |
| #define XFS_ALLOC_BLOCK_MINRECS(lev,cur) ((cur)->bc_mp->m_alloc_mnr[lev != 0]) | #define XFS_ALLOC_BLOCK_MINRECS(lev,cur) ((cur)->bc_mp->m_alloc_mnr[lev != 0]) |
| Line 87 typedef struct xfs_btree_sblock xfs_allo | Line 86 typedef struct xfs_btree_sblock xfs_allo |
| * Record, key, and pointer address macros for btree blocks. | * Record, key, and pointer address macros for btree blocks. |
| */ | */ |
| #define XFS_ALLOC_REC_ADDR(bb,i,cur) \ | #define XFS_ALLOC_REC_ADDR(bb,i,cur) \ |
| XFS_BTREE_REC_ADDR(XFS_ALLOC_BLOCK_SIZE(0,cur), xfs_alloc, \ | XFS_BTREE_REC_ADDR(xfs_alloc, bb, i) |
| bb, i, XFS_ALLOC_BLOCK_MAXRECS(0, cur)) | |
| #define XFS_ALLOC_KEY_ADDR(bb,i,cur) \ | #define XFS_ALLOC_KEY_ADDR(bb,i,cur) \ |
| XFS_BTREE_KEY_ADDR(XFS_ALLOC_BLOCK_SIZE(1,cur), xfs_alloc, \ | XFS_BTREE_KEY_ADDR(xfs_alloc, bb, i) |
| bb, i, XFS_ALLOC_BLOCK_MAXRECS(1, cur)) | |
| #define XFS_ALLOC_PTR_ADDR(bb,i,cur) \ | #define XFS_ALLOC_PTR_ADDR(bb,i,cur) \ |
| XFS_BTREE_PTR_ADDR(XFS_ALLOC_BLOCK_SIZE(1,cur), xfs_alloc, \ | XFS_BTREE_PTR_ADDR(xfs_alloc, bb, i, XFS_ALLOC_BLOCK_MAXRECS(1, cur)) |
| bb, i, XFS_ALLOC_BLOCK_MAXRECS(1, cur)) | |
| /* | /* |
| * Decrement cursor by one record at the level. | * Decrement cursor by one record at the level. |