From nobody Sun Dec 05 18:47:01 2021 X-Original-To: dev-commits-src-all@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 16CE118BE4DD; Sun, 5 Dec 2021 18:47:02 +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 4J6bBs5xSXz4jwf; Sun, 5 Dec 2021 18:47:01 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 AB61D1CFFA; Sun, 5 Dec 2021 18:47:01 +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 1B5Il1Yn030264; Sun, 5 Dec 2021 18:47:01 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1B5Il1fx030263; Sun, 5 Dec 2021 18:47:01 GMT (envelope-from git) Date: Sun, 5 Dec 2021 18:47:01 GMT Message-Id: <202112051847.1B5Il1fx030263@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 2cb67bd7988a - main - uma: remove unused *item argument from cache_free() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 2cb67bd7988ae2426736ae6c3364773291f6627a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638730021; 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=ZRE7ksZcC/H6sxu8kcDJ0ZZl2y5YcoEACAx0XNuGgq8=; b=vZO1k67gr7vdCys9JKzPBV7wYgq93NUVUZOwbJigLP4hIuq5dlDBU7qskpUXD8+SNaNfcl hUafCGaw2M/6NSUroMsM7/wzRZCotza/ZH4rZ3vw/FMQkb0aVdD8pkDcwZ/fEFkFAfjqAp gAEDsP/F5/G4g95NKiTybYIm9Qnh3BG7sH3VEJc+5OIj36edgZVEH8loIYulLy2azrCelL 9nBL0eN8vYx+gcL8PO8kZchwHyPoViZvxs6RzPbawhcMOmsrsMvbUK0GNoCvM8MCuMhXlM LYPVGyKlQYkvSZ4q2n2GN+uyv9HMZPnuyzF05ppsi3TuKtXpPVjkDPvMf0HKhw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638730021; a=rsa-sha256; cv=none; b=Jo+DtiB8cXSEDqNkq2zPTqAjDGDgwSAPsyxPCrN2NLlsHZUj3Xd4IaKAkMduVMhFr+eTfJ 1SHk+sJo6C+K6nVh0MuJaIRqUuiD59OLMPFtgGOCOMVs2nWZt+IOxR+hLE4MuagHzQplfk 7pdhcjbUSsIj8YsgoTgPCC7/Hz/FI76TLbfrTE9sI3O9aX1x/axKBhhWltKc7eaRFwBSsj 5sFQY06b7r9ltC2ESRQo4yFWlYdkkZlHHpCEr0k+kyT4Kh4nfchVsdaNCEbpndtLLCEZvO KFRJC+8m9t/sCkeJx85KDVgYFADTQNZnapIcmXu5OmPCM401CSLs8ZzS2ZoM/Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=2cb67bd7988ae2426736ae6c3364773291f6627a commit 2cb67bd7988ae2426736ae6c3364773291f6627a Author: Gleb Smirnoff AuthorDate: 2021-12-05 16:37:56 +0000 Commit: Gleb Smirnoff CommitDate: 2021-12-05 18:44:47 +0000 uma: remove unused *item argument from cache_free() Reviewed by: markj Differential revision: https://reviews.freebsd.org/D33272 --- sys/vm/uma_core.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sys/vm/uma_core.c b/sys/vm/uma_core.c index 7b83d81a423d..5a9d9bb9fbf4 100644 --- a/sys/vm/uma_core.c +++ b/sys/vm/uma_core.c @@ -331,7 +331,7 @@ static uma_keg_t uma_kcreate(uma_zone_t zone, size_t size, uma_init uminit, static int zone_import(void *, void **, int, int, int); static void zone_release(void *, void **, int); static bool cache_alloc(uma_zone_t, uma_cache_t, void *, int); -static bool cache_free(uma_zone_t, uma_cache_t, void *, void *, int); +static bool cache_free(uma_zone_t, uma_cache_t, void *, int); static int sysctl_vm_zone_count(SYSCTL_HANDLER_ARGS); static int sysctl_vm_zone_stats(SYSCTL_HANDLER_ARGS); @@ -4410,7 +4410,7 @@ uma_zfree_smr(uma_zone_t zone, void *item) critical_exit(); return; } - } while (cache_free(zone, cache, NULL, item, itemdomain)); + } while (cache_free(zone, cache, NULL, itemdomain)); critical_exit(); /* @@ -4504,7 +4504,7 @@ uma_zfree_arg(uma_zone_t zone, void *item, void *udata) critical_exit(); return; } - } while (cache_free(zone, cache, udata, item, itemdomain)); + } while (cache_free(zone, cache, udata, itemdomain)); critical_exit(); /* @@ -4645,8 +4645,7 @@ zone_free_bucket(uma_zone_t zone, uma_bucket_t bucket, void *udata, * the caller should retry. */ static __noinline bool -cache_free(uma_zone_t zone, uma_cache_t cache, void *udata, void *item, - int itemdomain) +cache_free(uma_zone_t zone, uma_cache_t cache, void *udata, int itemdomain) { uma_cache_bucket_t cbucket; uma_bucket_t newbucket, bucket;