aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2018-03-08 20:35:22 -0600
committerEric Sandeen <sandeen@redhat.com>2018-03-08 20:35:22 -0600
commitbf0e024fb10d623e8da98a0c41625a2007437a6a (patch)
treef9e96342c3803f3a0c70f4b91b8f85c4949bb14f
parent864028ed3ae482212b41f83d85b2be42aedb3aac (diff)
downloadxfsprogs-dev-bf0e024fb10d623e8da98a0c41625a2007437a6a.tar.gz
libxfs: move xfs_inode_zone to rdwr.c
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>
-rw-r--r--libxfs/init.c3
-rw-r--r--libxfs/rdwr.c2
2 files changed, 2 insertions, 3 deletions
diff --git a/libxfs/init.c b/libxfs/init.c
index c7d73b6685..3456cb519e 100644
--- a/libxfs/init.c
+++ b/libxfs/init.c
@@ -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;
diff --git a/libxfs/rdwr.c b/libxfs/rdwr.c
index 81701b752c..3142094950 100644
--- a/libxfs/rdwr.c
+++ b/libxfs/rdwr.c
@@ -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,