From 18ca574f0a52a05806f0d0ea6d70b7ebc35bf0c0 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 55c2f1ea1..ccba6cea3 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); } }