From bf0e024fb10d623e8da98a0c41625a2007437a6a Mon Sep 17 00:00:00 2001 From: Eric Sandeen Date: Thu, 8 Mar 2018 20:35:22 -0600 Subject: [PATCH] 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 Reviewed-by: Darrick J. Wong Signed-off-by: Eric Sandeen --- libxfs/init.c | 3 +-- libxfs/rdwr.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/libxfs/init.c b/libxfs/init.c index c7d73b668..3456cb519 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 81701b752..314209495 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, -- 2.39.2