1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-19 10:53:58 +00:00

fix compilation under ZIO_USE_UMA

This commit is contained in:
Kip Macy 2010-03-13 21:52:21 +00:00
parent 181c6ae3f0
commit 03af82ac5e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=205133
2 changed files with 6 additions and 11 deletions

View File

@ -541,6 +541,11 @@ static buf_hash_table_t buf_hash_table;
uint64_t zfs_crc64_table[256];
#ifdef ZIO_USE_UMA
extern kmem_cache_t *zio_buf_cache[];
extern kmem_cache_t *zio_data_buf_cache[];
#endif
/*
* Level 2 ARC
*/
@ -1896,8 +1901,6 @@ arc_kmem_reap_now(arc_reclaim_strategy_t strat)
size_t i;
kmem_cache_t *prev_cache = NULL;
kmem_cache_t *prev_data_cache = NULL;
extern kmem_cache_t *zio_buf_cache[];
extern kmem_cache_t *zio_data_buf_cache[];
#endif
#ifdef _KERNEL

View File

@ -90,13 +90,6 @@ zio_init(void)
{
#ifdef ZIO_USE_UMA
size_t c;
#endif
#if 0
vmem_t *data_alloc_arena = NULL;
#ifdef _KERNEL
data_alloc_arena = zio_alloc_arena;
#endif
#endif
zio_cache = kmem_cache_create("zio_cache", sizeof (zio_t), 0,
NULL, NULL, NULL, NULL, NULL, 0);
@ -132,8 +125,7 @@ zio_init(void)
(void) sprintf(name, "zio_data_buf_%lu", (ulong_t)size);
zio_data_buf_cache[c] = kmem_cache_create(name, size,
align, NULL, NULL, NULL, NULL, data_alloc_arena,
KMC_NODEBUG);
align, NULL, NULL, NULL, NULL, NULL, KMC_NODEBUG);
}
}