uma_zfree_smr: uz_flags is only used if NUMA is defined.

This commit is contained in:
John Baldwin 2022-04-08 17:25:13 -07:00
parent 3b994db74b
commit a7e1a58554

View File

@ -4394,7 +4394,10 @@ uma_zfree_smr(uma_zone_t zone, void *item)
{
uma_cache_t cache;
uma_cache_bucket_t bucket;
int itemdomain, uz_flags;
int itemdomain;
#ifdef NUMA
int uz_flags;
#endif
CTR3(KTR_UMA, "uma_zfree_smr zone %s(%p) item %p",
zone->uz_name, zone, item);
@ -4408,9 +4411,9 @@ uma_zfree_smr(uma_zone_t zone, void *item)
return;
#endif
cache = &zone->uz_cpu[curcpu];
uz_flags = cache_uz_flags(cache);
itemdomain = 0;
#ifdef NUMA
uz_flags = cache_uz_flags(cache);
if ((uz_flags & UMA_ZONE_FIRSTTOUCH) != 0)
itemdomain = item_domain(item);
#endif