diff options
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r-- | fs/xfs/xfs_btree.h | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h index 795a124cee6f..d6120a749060 100644 --- a/fs/xfs/xfs_btree.h +++ b/fs/xfs/xfs_btree.h | |||
@@ -149,21 +149,6 @@ do { \ | |||
149 | } \ | 149 | } \ |
150 | } while (0) | 150 | } while (0) |
151 | 151 | ||
152 | /* | ||
153 | * Record, key, and pointer address calculation macros. | ||
154 | * Given block size, type prefix, block pointer, and index of requested entry | ||
155 | * (first entry numbered 1). | ||
156 | */ | ||
157 | #define XFS_BTREE_REC_ADDR(t,bb,i) \ | ||
158 | ((t ## _rec_t *)((char *)(bb) + sizeof(t ## _block_t) + \ | ||
159 | ((i) - 1) * sizeof(t ## _rec_t))) | ||
160 | #define XFS_BTREE_KEY_ADDR(t,bb,i) \ | ||
161 | ((t ## _key_t *)((char *)(bb) + sizeof(t ## _block_t) + \ | ||
162 | ((i) - 1) * sizeof(t ## _key_t))) | ||
163 | #define XFS_BTREE_PTR_ADDR(t,bb,i,mxr) \ | ||
164 | ((t ## _ptr_t *)((char *)(bb) + sizeof(t ## _block_t) + \ | ||
165 | (mxr) * sizeof(t ## _key_t) + ((i) - 1) * sizeof(t ## _ptr_t))) | ||
166 | |||
167 | #define XFS_BTREE_MAXLEVELS 8 /* max of all btrees */ | 152 | #define XFS_BTREE_MAXLEVELS 8 /* max of all btrees */ |
168 | 153 | ||
169 | struct xfs_btree_ops { | 154 | struct xfs_btree_ops { |