From: Eric Sandeen Date: Fri, 9 Mar 2018 02:35:22 +0000 (-0600) Subject: libxfs: move xfs_inode_zone to rdwr.c X-Git-Tag: v4.16.0-rc1~53 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf0e024fb10d623e8da98a0c41625a2007437a6a;p=thirdparty%2Fxfsprogs-dev.git 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 --- 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,