From nobody Sat Apr 09 00:27:50 2022 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 25C3D1AABB45; Sat, 9 Apr 2022 00:27:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KZwtv3fPSz3p2V; Sat, 9 Apr 2022 00:27:51 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BXy5fP8/nxWKokMMvTA8gpF9xuvl3nwpHcLczE9k9As=; b=o0F/TTm970P2vvrS+vwJIf2pqpuCEO5J9MElJm8JGXNwel3d+aJASbs3Tky/C/bliKjAkz GCW457lm6qnunGUV8FJUrMa+cGH6fi/HQkgQm8c8l6IKo6CTjzngKFoRirf5rNS28V5Jxm 3WbPqsc5Rcm8BXe+wrwxQKCTY0Mrq3jSt9yP8Kvx6xbPM0iLakZbS3cc/Dxq0riCSxe3UG Ptqp+Kv0CgYmRayrtZsOoIDwXXZ3bg5JSgqRDsMMJGrkE3oK9V1qnODTQbzMr3+XLuY0+t 5qwgpesQBUkRJ1zqarec6RWgpwX5aXZXCx/XcaMDMb9cVJFp+6a4hx8p1zzLwg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id DEF8B7568; Sat, 9 Apr 2022 00:27:50 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2390RoYo056529; Sat, 9 Apr 2022 00:27:50 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2390RoAt056528; Sat, 9 Apr 2022 00:27:50 GMT (envelope-from git) Date: Sat, 9 Apr 2022 00:27:50 GMT Message-Id: <202204090027.2390RoAt056528@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: a7e1a58554fd - main - uma_zfree_smr: uz_flags is only used if NUMA is defined. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: a7e1a58554fd84d382975808f2b655426afc90b0 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1649464071; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=BXy5fP8/nxWKokMMvTA8gpF9xuvl3nwpHcLczE9k9As=; b=UBj4n0qF1g60PmxnS7YRIV7uho80FkPMtXYCXOSZnEIpJ4pzsnfmUHuqTc/VTRzM1g+wwx rLzgzMyvbyn5ZaMLotGTvAVnS2uon2gDfW6IFXQ+dsahVrQleUwUfVlT5dIhJAbYeJTiqC SYXFhchbRaHL4Z1sX2LAwFF8BZqERU1rJ5J83MnWx1qr+bjuxUSY0PITJu6xY2Ibs5EAqv Iea9NWrjfM9oWBPpY4WpDw5uw9bOQtQuge+6YyrMABC9vXwu8SaQah7hGCkCT51STcNuuH zz70ZQgf3BoRFvW9MnrWlbYD4kUp7KJnUsY/8oHlPEknmJ/csdN3VX0GaCQ2WQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1649464071; a=rsa-sha256; cv=none; b=YYeUhiUMoNq+D52cqtC2m4LuCtTo4qUZy18bPc4fLuYraIH4OKa28/S6QkA9wiAkaSIhGS AY9VyuiFrcsZ91CeycYwGbfPvVRiSyYBLxAuKh4fKJAPfYYnLZ6pyv0Bdrd4WpMQSgU6/l kqRjfU3ULLkh65L+zph1V84lv9obUev8bRpHLtYJD23rrWlXOTwc6EEWpmREyd6N+Q4SD3 34Ab6kwfoK49aVArACaXlHKURyel96TfsRccgvbgJMvu5dcG0fDjCz5Azt289ydTzkKUcy VixLQp0qK8MfGkko8tBlsO0LXBjr5npERjrzFiG/ikY3wnq+MPh5F9NS0pGM0g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=a7e1a58554fd84d382975808f2b655426afc90b0 commit a7e1a58554fd84d382975808f2b655426afc90b0 Author: John Baldwin AuthorDate: 2022-04-09 00:25:13 +0000 Commit: John Baldwin CommitDate: 2022-04-09 00:25:13 +0000 uma_zfree_smr: uz_flags is only used if NUMA is defined. --- sys/vm/uma_core.c | 7 +++++-- 1 file 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