]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commitdiff
libxfs: add several zone extern declarations to libxfs_priv.h
authorEric Sandeen <sandeen@redhat.com>
Wed, 17 Oct 2018 18:25:10 +0000 (13:25 -0500)
committerEric Sandeen <sandeen@redhat.com>
Wed, 17 Oct 2018 18:25:10 +0000 (13:25 -0500)
Several zones have extern declarations in kernelspace headers we don't
have in userspace.

Adding these to the libxfs_priv.h header silences sparse warnings about
whether these should be static vars.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/init.c
libxfs/libxfs_priv.h

index 10dcbf3ae4816c6702a5e40990980183782947e7..80fbe6a3e927a1aac1d9d45b5f8d42d2ab819387 100644 (file)
@@ -363,15 +363,6 @@ done:
 static int
 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;
-       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 void             xfs_dir_startup();
 
        if (release) {  /* free zone allocation */
index 6df78642a8d7f11d8d8d436d1a82e943dec6585b..b45d07eb2e510c7ea3ce98e93d8c49869b1b76fd 100644 (file)
 #include "xfs_fs.h"
 #include "crc32c.h"
 
+/* Zones used in libxfs allocations that aren't in shared header files */
+extern kmem_zone_t *xfs_buf_item_zone;
+extern kmem_zone_t *xfs_ili_zone;
+extern kmem_zone_t *xfs_buf_zone;
+extern kmem_zone_t *xfs_inode_zone;
+extern kmem_zone_t *xfs_trans_zone;
+
 /* CRC stuff, buffer API dependent on it */
 #define crc32c(c,p,l)  crc32c_le((c),(unsigned char const *)(p),(l))