[XFS] Use the same btree_cur union member for alloc and inobt trees.
The alloc and inobt btree use the same agbp/agno pair in the btree_cur union. Make them use the same bc_private.a union member so that code for these two short form btree implementations can be shared. SGI-PV: 981498 SGI-Modid: xfs-linux-melb:xfs-kern:31788a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Tim Shimmin <tes@sgi.com> Signed-off-by: David Chinner <david@fromorbit.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
committed by
Lachlan McIlroy
parent
cdcf43335c
commit
169d6227a7
@@ -158,8 +158,8 @@ typedef struct xfs_btree_cur
|
||||
__uint8_t bc_blocklog; /* log2(blocksize) of btree blocks */
|
||||
xfs_btnum_t bc_btnum; /* identifies which btree type */
|
||||
union {
|
||||
struct { /* needed for BNO, CNT */
|
||||
struct xfs_buf *agbp; /* agf buffer pointer */
|
||||
struct { /* needed for BNO, CNT, INO */
|
||||
struct xfs_buf *agbp; /* agf/agi buffer pointer */
|
||||
xfs_agnumber_t agno; /* ag number */
|
||||
} a;
|
||||
struct { /* needed for BMAP */
|
||||
@@ -172,10 +172,6 @@ typedef struct xfs_btree_cur
|
||||
char flags; /* flags */
|
||||
#define XFS_BTCUR_BPRV_WASDEL 1 /* was delayed */
|
||||
} b;
|
||||
struct { /* needed for INO */
|
||||
struct xfs_buf *agbp; /* agi buffer pointer */
|
||||
xfs_agnumber_t agno; /* ag number */
|
||||
} i;
|
||||
} bc_private; /* per-btree type data */
|
||||
} xfs_btree_cur_t;
|
||||
|
||||
|
Reference in New Issue
Block a user