From 87f01fc158b60cc3a309c867fb1b68e3afafdc7c Mon Sep 17 00:00:00 2001 From: Mateusz Guzik Date: Thu, 12 Nov 2020 02:11:32 +0100 Subject: [PATCH] G/C data_alloc_arena It is a leftover from illumos always set to NULL and introducing a spurious difference between zio_buf and zio_data_buf. Reviewed-by: Brian Behlendorf Signed-off-by: Mateusz Guzik Closes #11188 --- module/zfs/zio.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/module/zfs/zio.c b/module/zfs/zio.c index 260e88b0be..052fa7ec3f 100644 --- a/module/zfs/zio.c +++ b/module/zfs/zio.c @@ -144,7 +144,6 @@ void zio_init(void) { size_t c; - vmem_t *data_alloc_arena = NULL; zio_cache = kmem_cache_create("zio_cache", sizeof (zio_t), 0, NULL, NULL, NULL, NULL, NULL, 0); @@ -213,8 +212,7 @@ zio_init(void) (void) snprintf(name, sizeof (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, data_cflags); + align, NULL, NULL, NULL, NULL, NULL, data_cflags); } }