diff options
author | Dave Chinner <dchinner@redhat.com> | 2012-06-22 04:50:14 -0400 |
---|---|---|
committer | Ben Myers <bpm@sgi.com> | 2012-07-01 15:50:07 -0400 |
commit | 1d9025e56143c0c4aebebdb62e46618d3d284218 (patch) | |
tree | c31b34008dbd17ac1811c73cc515ea7f6247e2f0 /fs/xfs/xfs_super.c | |
parent | 3605431fb9739a30ccd0c6380ae8e3c6f8e670a5 (diff) |
xfs: remove struct xfs_dabuf and infrastructure
The struct xfs_dabuf now only tracks a single xfs_buf and all the
information it holds can be gained directly from the xfs_buf. Hence
we can remove the struct dabuf and pass the xfs_buf around
everywhere.
Kill the struct dabuf and the associated infrastructure.
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ben Myers <bpm@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 425f6e9d4c0c..07f70e17c745 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -1491,13 +1491,9 @@ xfs_init_zones(void) | |||
1491 | if (!xfs_da_state_zone) | 1491 | if (!xfs_da_state_zone) |
1492 | goto out_destroy_btree_cur_zone; | 1492 | goto out_destroy_btree_cur_zone; |
1493 | 1493 | ||
1494 | xfs_dabuf_zone = kmem_zone_init(sizeof(xfs_dabuf_t), "xfs_dabuf"); | ||
1495 | if (!xfs_dabuf_zone) | ||
1496 | goto out_destroy_da_state_zone; | ||
1497 | |||
1498 | xfs_ifork_zone = kmem_zone_init(sizeof(xfs_ifork_t), "xfs_ifork"); | 1494 | xfs_ifork_zone = kmem_zone_init(sizeof(xfs_ifork_t), "xfs_ifork"); |
1499 | if (!xfs_ifork_zone) | 1495 | if (!xfs_ifork_zone) |
1500 | goto out_destroy_dabuf_zone; | 1496 | goto out_destroy_da_state_zone; |
1501 | 1497 | ||
1502 | xfs_trans_zone = kmem_zone_init(sizeof(xfs_trans_t), "xfs_trans"); | 1498 | xfs_trans_zone = kmem_zone_init(sizeof(xfs_trans_t), "xfs_trans"); |
1503 | if (!xfs_trans_zone) | 1499 | if (!xfs_trans_zone) |
@@ -1560,8 +1556,6 @@ xfs_init_zones(void) | |||
1560 | kmem_zone_destroy(xfs_trans_zone); | 1556 | kmem_zone_destroy(xfs_trans_zone); |
1561 | out_destroy_ifork_zone: | 1557 | out_destroy_ifork_zone: |
1562 | kmem_zone_destroy(xfs_ifork_zone); | 1558 | kmem_zone_destroy(xfs_ifork_zone); |
1563 | out_destroy_dabuf_zone: | ||
1564 | kmem_zone_destroy(xfs_dabuf_zone); | ||
1565 | out_destroy_da_state_zone: | 1559 | out_destroy_da_state_zone: |
1566 | kmem_zone_destroy(xfs_da_state_zone); | 1560 | kmem_zone_destroy(xfs_da_state_zone); |
1567 | out_destroy_btree_cur_zone: | 1561 | out_destroy_btree_cur_zone: |
@@ -1589,7 +1583,6 @@ xfs_destroy_zones(void) | |||
1589 | kmem_zone_destroy(xfs_log_item_desc_zone); | 1583 | kmem_zone_destroy(xfs_log_item_desc_zone); |
1590 | kmem_zone_destroy(xfs_trans_zone); | 1584 | kmem_zone_destroy(xfs_trans_zone); |
1591 | kmem_zone_destroy(xfs_ifork_zone); | 1585 | kmem_zone_destroy(xfs_ifork_zone); |
1592 | kmem_zone_destroy(xfs_dabuf_zone); | ||
1593 | kmem_zone_destroy(xfs_da_state_zone); | 1586 | kmem_zone_destroy(xfs_da_state_zone); |
1594 | kmem_zone_destroy(xfs_btree_cur_zone); | 1587 | kmem_zone_destroy(xfs_btree_cur_zone); |
1595 | kmem_zone_destroy(xfs_bmap_free_item_zone); | 1588 | kmem_zone_destroy(xfs_bmap_free_item_zone); |