From 4149e19dfcce952eb464275aa685f17c3ad95433 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Thu, 3 Jun 2021 18:31:21 +0200 Subject: [PATCH] module/zfs: arc: arc_hdr_realloc_crypt: remove unused variables MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Brian Behlendorf Reviewed-by: Ryan Moeller Signed-off-by: Ahelenia ZiemiaƄska Closes #12187 --- module/zfs/arc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index 47b58b6c2e..8acb5d5efd 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -3430,7 +3430,6 @@ arc_hdr_realloc_crypt(arc_buf_hdr_t *hdr, boolean_t need_crypt) arc_buf_hdr_t *nhdr; arc_buf_t *buf; kmem_cache_t *ncache, *ocache; - unsigned nsize, osize; /* * This function requires that hdr is in the arc_anon state. @@ -3447,14 +3446,10 @@ arc_hdr_realloc_crypt(arc_buf_hdr_t *hdr, boolean_t need_crypt) if (need_crypt) { ncache = hdr_full_crypt_cache; - nsize = sizeof (hdr->b_crypt_hdr); ocache = hdr_full_cache; - osize = HDR_FULL_SIZE; } else { ncache = hdr_full_cache; - nsize = HDR_FULL_SIZE; ocache = hdr_full_crypt_cache; - osize = sizeof (hdr->b_crypt_hdr); } nhdr = kmem_cache_alloc(ncache, KM_PUSHPAGE);