aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorнаб <[email protected]>2021-06-03 18:31:21 +0200
committerBrian Behlendorf <[email protected]>2021-06-07 20:58:42 -0700
commitf719d3b160050e29b547477ba5b8c3f837c3f45f (patch)
tree407291dab2d815d4c7d9cf8571bb8e6392ffa620 /module
parent4ff49c5a063f8adcd2d4094e1f5b00539666236a (diff)
module/zfs: arc: arc_hdr_realloc_crypt: remove unused variables
Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Ryan Moeller <[email protected]> Signed-off-by: Ahelenia Ziemiańska <[email protected]> Closes #12187
Diffstat (limited to 'module')
-rw-r--r--module/zfs/arc.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/module/zfs/arc.c b/module/zfs/arc.c
index 716f108eb..5526cae37 100644
--- a/module/zfs/arc.c
+++ b/module/zfs/arc.c
@@ -3469,7 +3469,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.
@@ -3486,14 +3485,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);