aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-09 00:25:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-09 00:25:13 +0000
commita7e1a58554fd84d382975808f2b655426afc90b0 (patch)
tree74166c47c67c6424307705519656656ac84d8044
parent3b994db74b75551d5ab6cc3df5d3b51d3347032b (diff)
downloadsrc-a7e1a58554fd84d382975808f2b655426afc90b0.tar.gz
src-a7e1a58554fd84d382975808f2b655426afc90b0.zip
uma_zfree_smr: uz_flags is only used if NUMA is defined.
-rw-r--r--sys/vm/uma_core.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c
index 958442fe73e2..dfa3138a34f9 100644
--- a/sys/vm/uma_core.c
+++ b/sys/vm/uma_core.c
@@ -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