module/zfs: arc: arc_hdr_realloc_crypt: remove unused variables
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Ryan Moeller <ryan@iXsystems.com> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12187
This commit is contained in:
parent
4ff49c5a06
commit
f719d3b160
|
@ -3469,7 +3469,6 @@ arc_hdr_realloc_crypt(arc_buf_hdr_t *hdr, boolean_t need_crypt)
|
||||||
arc_buf_hdr_t *nhdr;
|
arc_buf_hdr_t *nhdr;
|
||||||
arc_buf_t *buf;
|
arc_buf_t *buf;
|
||||||
kmem_cache_t *ncache, *ocache;
|
kmem_cache_t *ncache, *ocache;
|
||||||
unsigned nsize, osize;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This function requires that hdr is in the arc_anon state.
|
* 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) {
|
if (need_crypt) {
|
||||||
ncache = hdr_full_crypt_cache;
|
ncache = hdr_full_crypt_cache;
|
||||||
nsize = sizeof (hdr->b_crypt_hdr);
|
|
||||||
ocache = hdr_full_cache;
|
ocache = hdr_full_cache;
|
||||||
osize = HDR_FULL_SIZE;
|
|
||||||
} else {
|
} else {
|
||||||
ncache = hdr_full_cache;
|
ncache = hdr_full_cache;
|
||||||
nsize = HDR_FULL_SIZE;
|
|
||||||
ocache = hdr_full_crypt_cache;
|
ocache = hdr_full_crypt_cache;
|
||||||
osize = sizeof (hdr->b_crypt_hdr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nhdr = kmem_cache_alloc(ncache, KM_PUSHPAGE);
|
nhdr = kmem_cache_alloc(ncache, KM_PUSHPAGE);
|
||||||
|
|
Loading…
Reference in New Issue