mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
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 <ryao@gentoo.org> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Issue #1614
This commit is contained in:
parent
bce45ec9fb
commit
4edbd2f79a
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user