diff options
| author | Christoph Hellwig <hch@infradead.org> | 2009-12-04 05:19:07 -0500 |
|---|---|---|
| committer | Alex Elder <aelder@sgi.com> | 2009-12-16 14:41:20 -0500 |
| commit | a5f9be58c2b87106100a6053d09b1f9f8d551c6e (patch) | |
| tree | 4d44970b16b0699cb3bc757b9e5f25eda230d4d1 | |
| parent | 2ee1abad73a12df5521cd3f017f081f1f684a361 (diff) | |
xfs: kill xfs_bmbt_rec_32/64 types
For a long time we've always stored bmap btree records in the 64bit format,
so kill off the dead 32bit type, and make sure the 64bit type is named just
xfs_bmbt_rec everywhere, without any size postfix.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Alex Elder <aelder@sgi.com>
| -rw-r--r-- | fs/xfs/xfs_bmap_btree.h | 14 | ||||
| -rw-r--r-- | fs/xfs/xfs_inode_item.h | 6 |
2 files changed, 6 insertions, 14 deletions
diff --git a/fs/xfs/xfs_bmap_btree.h b/fs/xfs/xfs_bmap_btree.h index 5549d495947f..cf07ca7c22e7 100644 --- a/fs/xfs/xfs_bmap_btree.h +++ b/fs/xfs/xfs_bmap_btree.h | |||
| @@ -46,20 +46,12 @@ typedef struct xfs_bmdr_block { | |||
| 46 | #define BMBT_STARTBLOCK_BITLEN 52 | 46 | #define BMBT_STARTBLOCK_BITLEN 52 |
| 47 | #define BMBT_BLOCKCOUNT_BITLEN 21 | 47 | #define BMBT_BLOCKCOUNT_BITLEN 21 |
| 48 | 48 | ||
| 49 | 49 | typedef struct xfs_bmbt_rec { | |
| 50 | #define BMBT_USE_64 1 | ||
| 51 | |||
| 52 | typedef struct xfs_bmbt_rec_32 | ||
| 53 | { | ||
| 54 | __uint32_t l0, l1, l2, l3; | ||
| 55 | } xfs_bmbt_rec_32_t; | ||
| 56 | typedef struct xfs_bmbt_rec_64 | ||
| 57 | { | ||
| 58 | __be64 l0, l1; | 50 | __be64 l0, l1; |
| 59 | } xfs_bmbt_rec_64_t; | 51 | } xfs_bmbt_rec_t; |
| 60 | 52 | ||
| 61 | typedef __uint64_t xfs_bmbt_rec_base_t; /* use this for casts */ | 53 | typedef __uint64_t xfs_bmbt_rec_base_t; /* use this for casts */ |
| 62 | typedef xfs_bmbt_rec_64_t xfs_bmbt_rec_t, xfs_bmdr_rec_t; | 54 | typedef xfs_bmbt_rec_t xfs_bmdr_rec_t; |
| 63 | 55 | ||
| 64 | typedef struct xfs_bmbt_rec_host { | 56 | typedef struct xfs_bmbt_rec_host { |
| 65 | __uint64_t l0, l1; | 57 | __uint64_t l0, l1; |
diff --git a/fs/xfs/xfs_inode_item.h b/fs/xfs/xfs_inode_item.h index 65bae4c9b8bf..cc8df1ac7783 100644 --- a/fs/xfs/xfs_inode_item.h +++ b/fs/xfs/xfs_inode_item.h | |||
| @@ -127,7 +127,7 @@ static inline int xfs_ilog_fdata(int w) | |||
| 127 | #ifdef __KERNEL__ | 127 | #ifdef __KERNEL__ |
| 128 | 128 | ||
| 129 | struct xfs_buf; | 129 | struct xfs_buf; |
| 130 | struct xfs_bmbt_rec_64; | 130 | struct xfs_bmbt_rec; |
| 131 | struct xfs_inode; | 131 | struct xfs_inode; |
| 132 | struct xfs_mount; | 132 | struct xfs_mount; |
| 133 | 133 | ||
| @@ -140,9 +140,9 @@ typedef struct xfs_inode_log_item { | |||
| 140 | unsigned short ili_flags; /* misc flags */ | 140 | unsigned short ili_flags; /* misc flags */ |
| 141 | unsigned short ili_logged; /* flushed logged data */ | 141 | unsigned short ili_logged; /* flushed logged data */ |
| 142 | unsigned int ili_last_fields; /* fields when flushed */ | 142 | unsigned int ili_last_fields; /* fields when flushed */ |
| 143 | struct xfs_bmbt_rec_64 *ili_extents_buf; /* array of logged | 143 | struct xfs_bmbt_rec *ili_extents_buf; /* array of logged |
| 144 | data exts */ | 144 | data exts */ |
| 145 | struct xfs_bmbt_rec_64 *ili_aextents_buf; /* array of logged | 145 | struct xfs_bmbt_rec *ili_aextents_buf; /* array of logged |
| 146 | attr exts */ | 146 | attr exts */ |
| 147 | unsigned int ili_pushbuf_flag; /* one bit used in push_ail */ | 147 | unsigned int ili_pushbuf_flag; /* one bit used in push_ail */ |
| 148 | 148 | ||
