aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_btree.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2008-10-30 01:53:47 -0400
committerLachlan McIlroy <lachlan@sgi.com>2008-10-30 01:53:47 -0400
commitf2277f06e626d694e61bb356524ff536ced24acf (patch)
treef5ada4a7fb6e9c98f340fdd83bcec3f5d41f95c5 /fs/xfs/xfs_btree.h
parentf338f9036400e453ab553b16639a9cc838b02d44 (diff)
[XFS] kill struct xfs_btree_hdr
This type is only embedded in struct xfs_btree_block and never used directly. By moving the fields directly into struct xfs_btree_block a lot of the macros for struct xfs_btree_sblock and struct xfs_btree_lblock can be used for struct xfs_btree_block too now which helps greatly with some of the migrations during implementing the generic btree code. SGI-PV: 985583 SGI-Modid: xfs-linux-melb:xfs-kern:32174a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com> Signed-off-by: Bill O'Donnell <billodo@sgi.com> Signed-off-by: David Chinner <david@fromorbit.com>
Diffstat (limited to 'fs/xfs/xfs_btree.h')
-rw-r--r--fs/xfs/xfs_btree.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/xfs_btree.h b/fs/xfs/xfs_btree.h
index 1f528a2a3754..332b9f1da203 100644
--- a/fs/xfs/xfs_btree.h
+++ b/fs/xfs/xfs_btree.h
@@ -63,15 +63,10 @@ typedef struct xfs_btree_lblock {
63/* 63/*
64 * Combined header and structure, used by common code. 64 * Combined header and structure, used by common code.
65 */ 65 */
66typedef struct xfs_btree_hdr 66typedef struct xfs_btree_block {
67{
68 __be32 bb_magic; /* magic number for block type */ 67 __be32 bb_magic; /* magic number for block type */
69 __be16 bb_level; /* 0 is a leaf */ 68 __be16 bb_level; /* 0 is a leaf */
70 __be16 bb_numrecs; /* current # of data records */ 69 __be16 bb_numrecs; /* current # of data records */
71} xfs_btree_hdr_t;
72
73typedef struct xfs_btree_block {
74 xfs_btree_hdr_t bb_h; /* header */
75 union { 70 union {
76 struct { 71 struct {
77 __be32 bb_leftsib; 72 __be32 bb_leftsib;