]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blobdiff - libxfs/init.c
xfs: fix transaction leak on remote attr set/remove failure
[thirdparty/xfsprogs-dev.git] / libxfs / init.c
index a65c86c341fdc38e040fc3e36c1cd0d6091a8690..2f38997201152f81f578a65f712a03c81892e8df 100644 (file)
@@ -1,19 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2000-2005 Silicon Graphics, Inc.
  * All Rights Reserved.
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License as
- * published by the Free Software Foundation.
- *
- * This program is distributed in the hope that it would be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write the Free Software Foundation,
- * Inc.,  51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  */
 
 #include <sys/stat.h>
@@ -384,7 +372,6 @@ manage_zones(int release)
        extern kmem_zone_t      *xfs_btree_cur_zone;
        extern kmem_zone_t      *xfs_bmap_free_item_zone;
        extern kmem_zone_t      *xfs_trans_zone;
-       extern kmem_zone_t      *xfs_log_item_desc_zone;
        extern void             xfs_dir_startup();
 
        if (release) {  /* free zone allocation */
@@ -399,7 +386,6 @@ manage_zones(int release)
                leaked += kmem_zone_destroy(xfs_btree_cur_zone);
                leaked += kmem_zone_destroy(xfs_bmap_free_item_zone);
                leaked += kmem_zone_destroy(xfs_trans_zone);
-               leaked += kmem_zone_destroy(xfs_log_item_desc_zone);
 
                return leaked;
        }
@@ -420,8 +406,6 @@ manage_zones(int release)
                        "xfs_bmap_free_item");
        xfs_trans_zone = kmem_zone_init(
                        sizeof(struct xfs_trans), "xfs_trans");
-       xfs_log_item_desc_zone = kmem_zone_init(
-                       sizeof(struct xfs_log_item_desc), "xfs_log_item_desc");
        xfs_dir_startup();
 
        return 0;