]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: move xfs_inode_zone to rdwr.c
authorEric Sandeen <sandeen@redhat.com>
Fri, 9 Mar 2018 02:35:22 +0000 (20:35 -0600)
committerEric Sandeen <sandeen@redhat.com>
Fri, 9 Mar 2018 02:35:22 +0000 (20:35 -0600)
The zone itself is created in rdwr.c, so define it there as
well, and add it to the list of externs in manage_zones along
with all the rest, for consistency.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/init.c
libxfs/rdwr.c

index c7d73b66853ac97055cfe97f6e8667c51b61c741..3456cb519e5c6d018c4bc8ba27155c86a16b06b4 100644 (file)
@@ -45,8 +45,6 @@ int   use_xfs_buf_lock;       /* global flag: use xfs_buf_t locks for MT */
 
 static void manage_zones(int); /* setup global zones */
 
-kmem_zone_t    *xfs_inode_zone;
-
 /*
  * dev_map - map open devices to fd.
  */
@@ -379,6 +377,7 @@ manage_zones(int release)
 {
        extern kmem_zone_t      *xfs_buf_zone;
        extern kmem_zone_t      *xfs_ili_zone;
+       extern kmem_zone_t      *xfs_inode_zone;
        extern kmem_zone_t      *xfs_ifork_zone;
        extern kmem_zone_t      *xfs_buf_item_zone;
        extern kmem_zone_t      *xfs_da_state_zone;
index 81701b752c56b50690b9975a03d2a0228f83653c..314209495095249f89c06f3ecade86b76f83644c 100644 (file)
@@ -1351,8 +1351,8 @@ struct cache_operations libxfs_bcache_operations = {
  * Inode cache stubs.
  */
 
+kmem_zone_t            *xfs_inode_zone;
 extern kmem_zone_t     *xfs_ili_zone;
-extern kmem_zone_t     *xfs_inode_zone;
 
 /*
  * If there are inline format data / attr forks attached to this inode,