diff options
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 5593066d497d..4b90e4b531b7 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -1703,6 +1703,12 @@ xfs_init_zones(void) | |||
1703 | if (!xfs_trans_zone) | 1703 | if (!xfs_trans_zone) |
1704 | goto out_destroy_ifork_zone; | 1704 | goto out_destroy_ifork_zone; |
1705 | 1705 | ||
1706 | xfs_log_item_desc_zone = | ||
1707 | kmem_zone_init(sizeof(struct xfs_log_item_desc), | ||
1708 | "xfs_log_item_desc"); | ||
1709 | if (!xfs_log_item_desc_zone) | ||
1710 | goto out_destroy_trans_zone; | ||
1711 | |||
1706 | /* | 1712 | /* |
1707 | * The size of the zone allocated buf log item is the maximum | 1713 | * The size of the zone allocated buf log item is the maximum |
1708 | * size possible under XFS. This wastes a little bit of memory, | 1714 | * size possible under XFS. This wastes a little bit of memory, |
@@ -1712,7 +1718,7 @@ xfs_init_zones(void) | |||
1712 | (((XFS_MAX_BLOCKSIZE / XFS_BLF_CHUNK) / | 1718 | (((XFS_MAX_BLOCKSIZE / XFS_BLF_CHUNK) / |
1713 | NBWORD) * sizeof(int))), "xfs_buf_item"); | 1719 | NBWORD) * sizeof(int))), "xfs_buf_item"); |
1714 | if (!xfs_buf_item_zone) | 1720 | if (!xfs_buf_item_zone) |
1715 | goto out_destroy_trans_zone; | 1721 | goto out_destroy_log_item_desc_zone; |
1716 | 1722 | ||
1717 | xfs_efd_zone = kmem_zone_init((sizeof(xfs_efd_log_item_t) + | 1723 | xfs_efd_zone = kmem_zone_init((sizeof(xfs_efd_log_item_t) + |
1718 | ((XFS_EFD_MAX_FAST_EXTENTS - 1) * | 1724 | ((XFS_EFD_MAX_FAST_EXTENTS - 1) * |
@@ -1749,6 +1755,8 @@ xfs_init_zones(void) | |||
1749 | kmem_zone_destroy(xfs_efd_zone); | 1755 | kmem_zone_destroy(xfs_efd_zone); |
1750 | out_destroy_buf_item_zone: | 1756 | out_destroy_buf_item_zone: |
1751 | kmem_zone_destroy(xfs_buf_item_zone); | 1757 | kmem_zone_destroy(xfs_buf_item_zone); |
1758 | out_destroy_log_item_desc_zone: | ||
1759 | kmem_zone_destroy(xfs_log_item_desc_zone); | ||
1752 | out_destroy_trans_zone: | 1760 | out_destroy_trans_zone: |
1753 | kmem_zone_destroy(xfs_trans_zone); | 1761 | kmem_zone_destroy(xfs_trans_zone); |
1754 | out_destroy_ifork_zone: | 1762 | out_destroy_ifork_zone: |
@@ -1779,6 +1787,7 @@ xfs_destroy_zones(void) | |||
1779 | kmem_zone_destroy(xfs_efi_zone); | 1787 | kmem_zone_destroy(xfs_efi_zone); |
1780 | kmem_zone_destroy(xfs_efd_zone); | 1788 | kmem_zone_destroy(xfs_efd_zone); |
1781 | kmem_zone_destroy(xfs_buf_item_zone); | 1789 | kmem_zone_destroy(xfs_buf_item_zone); |
1790 | kmem_zone_destroy(xfs_log_item_desc_zone); | ||
1782 | kmem_zone_destroy(xfs_trans_zone); | 1791 | kmem_zone_destroy(xfs_trans_zone); |
1783 | kmem_zone_destroy(xfs_ifork_zone); | 1792 | kmem_zone_destroy(xfs_ifork_zone); |
1784 | kmem_zone_destroy(xfs_dabuf_zone); | 1793 | kmem_zone_destroy(xfs_dabuf_zone); |