summaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorRichard Yao <[email protected]>2013-07-07 11:54:51 -0400
committerBrian Behlendorf <[email protected]>2013-08-01 09:48:06 -0700
commit4edbd2f79a95ac608155bf518ea7253c8a0a61fe (patch)
tree596ad1de4e8156e2d78c0009fdb738a4448e1d83 /module/zfs
parentbce45ec9fb7bcdd8c306ccc7fc1ecc7f29cecbf5 (diff)
Remove zio_alloc_arena
We declare zio_alloc_arena using extern, but it does not appear to exist anywhere in the code. This permits undefined behavior, so lets remove it. Signed-off-by: Richard Yao <[email protected]> Signed-off-by: Brian Behlendorf <[email protected]> Issue #1614
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/zio.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/module/zfs/zio.c b/module/zfs/zio.c
index 1acb80139..62a9082cb 100644
--- a/module/zfs/zio.c
+++ b/module/zfs/zio.c
@@ -79,9 +79,6 @@ kmem_cache_t *zio_data_buf_cache[SPA_MAXBLOCKSIZE >> SPA_MINBLOCKSHIFT];
int zio_bulk_flags = 0;
int zio_delay_max = ZIO_DELAY_MAX;
-#ifdef _KERNEL
-extern vmem_t *zio_alloc_arena;
-#endif
extern int zfs_mg_alloc_failures;
/*
@@ -151,9 +148,6 @@ zio_init(void)
size_t c;
vmem_t *data_alloc_arena = NULL;
-#ifdef _KERNEL
- data_alloc_arena = zio_alloc_arena;
-#endif
zio_cache = kmem_cache_create("zio_cache", sizeof (zio_t), 0,
zio_cons, zio_dest, NULL, NULL, NULL, KMC_KMEM);
zio_link_cache = kmem_cache_create("zio_link_cache",