Message ID | 20241223141550.638616-28-yukaixiong@huawei.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id AABDAE7718B for <linux-mm@archiver.kernel.org>; Mon, 23 Dec 2024 14:21:09 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 396EE6B00E4; Mon, 23 Dec 2024 09:21:09 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3453C6B00E5; Mon, 23 Dec 2024 09:21:09 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 1E58F6B00E6; Mon, 23 Dec 2024 09:21:09 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id EEEBB6B00E4 for <linux-mm@kvack.org>; Mon, 23 Dec 2024 09:21:08 -0500 (EST) Received: from smtpin09.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay06.hostedemail.com (Postfix) with ESMTP id AA18AB0E97 for <linux-mm@kvack.org>; Mon, 23 Dec 2024 14:21:08 +0000 (UTC) X-FDA: 82926433590.09.E2C6861 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by imf03.hostedemail.com (Postfix) with ESMTP id 349252001C for <linux-mm@kvack.org>; Mon, 23 Dec 2024 14:20:48 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=none; spf=pass (imf03.hostedemail.com: domain of yukaixiong@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=yukaixiong@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1734963641; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=nqyhYC9VHRbpINjzAU6rWoUpGKxiH+bHUC0qsLRtufg=; b=ZMc4o4p+ihMqjL22YtIqQCPqrgqcmo3eokExaIJaiKK144SQPBBWPt6b/YWIHYV1lZK8oz CZfiRNZhbuRrg5mzub8WhCrf4+S1Ntt2h0YZQLD9uXf5Zxb/V7ulTeyjsEP2sYzw8X6nCx lNeltNpmEwa5IOIxhsNaTGXUmu5iXhc= ARC-Authentication-Results: i=1; imf03.hostedemail.com; dkim=none; spf=pass (imf03.hostedemail.com: domain of yukaixiong@huawei.com designates 45.249.212.187 as permitted sender) smtp.mailfrom=yukaixiong@huawei.com; dmarc=pass (policy=quarantine) header.from=huawei.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1734963641; a=rsa-sha256; cv=none; b=pQ1f60wYCmLWl9BQ84w/BJeRL7WruC3XdwOTj69NsQju4fYyBVg8E+aBEOVAeqG9B3OYvV oLWQM9Z1cLbwRzH23d9Ozgee1sG3nFQerDZWbQaLnw60H+Tg6JAZVWadeGLlxnLjhAk1Ju sDO1mnxWwOUCtBSJ7FKco4JCIQ4NlA4= Received: from mail.maildlp.com (unknown [172.19.88.194]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4YH0Tx5HR3z11NKN; Mon, 23 Dec 2024 22:17:41 +0800 (CST) Received: from kwepemh100016.china.huawei.com (unknown [7.202.181.102]) by mail.maildlp.com (Postfix) with ESMTPS id 52466140120; Mon, 23 Dec 2024 22:21:03 +0800 (CST) Received: from huawei.com (10.175.113.32) by kwepemh100016.china.huawei.com (7.202.181.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.11; Mon, 23 Dec 2024 22:20:59 +0800 From: Kaixiong Yu <yukaixiong@huawei.com> To: <akpm@linux-foundation.org>, <mcgrof@kernel.org> CC: <ysato@users.sourceforge.jp>, <dalias@libc.org>, <glaubitz@physik.fu-berlin.de>, <luto@kernel.org>, <tglx@linutronix.de>, <mingo@redhat.com>, <bp@alien8.de>, <dave.hansen@linux.intel.com>, <hpa@zytor.com>, <viro@zeniv.linux.org.uk>, <brauner@kernel.org>, <jack@suse.cz>, <kees@kernel.org>, <j.granados@samsung.com>, <willy@infradead.org>, <Liam.Howlett@oracle.com>, <vbabka@suse.cz>, <lorenzo.stoakes@oracle.com>, <trondmy@kernel.org>, <anna@kernel.org>, <chuck.lever@oracle.com>, <jlayton@kernel.org>, <neilb@suse.de>, <okorniev@redhat.com>, <Dai.Ngo@oracle.com>, <tom@talpey.com>, <davem@davemloft.net>, <edumazet@google.com>, <kuba@kernel.org>, <pabeni@redhat.com>, <paul@paul-moore.com>, <jmorris@namei.org>, <linux-sh@vger.kernel.org>, <linux-kernel@vger.kernel.org>, <linux-fsdevel@vger.kernel.org>, <linux-mm@kvack.org>, <linux-nfs@vger.kernel.org>, <netdev@vger.kernel.org>, <linux-security-module@vger.kernel.org>, <dhowells@redhat.com>, <haifeng.xu@shopee.com>, <baolin.wang@linux.alibaba.com>, <shikemeng@huaweicloud.com>, <dchinner@redhat.com>, <bfoster@redhat.com>, <souravpanda@google.com>, <hannes@cmpxchg.org>, <rientjes@google.com>, <pasha.tatashin@soleen.com>, <david@redhat.com>, <ryan.roberts@arm.com>, <ying.huang@intel.com>, <yang@os.amperecomputing.com>, <zev@bewilderbeest.net>, <serge@hallyn.com>, <vegard.nossum@oracle.com>, <wangkefeng.wang@huawei.com> Subject: [PATCH v4 -next 11/15] sunrpc: simplify rpcauth_cache_shrink_count() Date: Mon, 23 Dec 2024 22:15:46 +0800 Message-ID: <20241223141550.638616-28-yukaixiong@huawei.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241223141550.638616-1-yukaixiong@huawei.com> References: <20241223141550.638616-1-yukaixiong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.175.113.32] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemh100016.china.huawei.com (7.202.181.102) X-Rspamd-Server: rspam05 X-Stat-Signature: 6afpyzz8gbbnc5515c7nkaq56wdpkqrm X-Rspamd-Queue-Id: 349252001C X-Rspam-User: X-HE-Tag: 1734963648-757264 X-HE-Meta: U2FsdGVkX18Tc7tMz1kGl5Z70qpJENw6cEf+24ek3x2UR4I+Sb11dFvLSs7V2cL69FJ3oNUt2gqAdclpWoZYfvJ0wwRlg8uXwKUvMDUYHVnGdLpuGddaPxBxcCDNt8ORH1xGdghR10fgxx4RgyWM2SUTaHaAvzgYVw80ejUp30NxhN40KOE0a/iBs3J/iTE+fsivX4CRCCHo7DG48rIZTwK2NjEl/QqzIlHQDo2z0ER4A+yDriWCZMRCPUu+YUZ+GhiAgw1fPFYEres8wnHsb7h6cbS5CsDH6SnsYUjWmAA2Xhxxeei578bjrjJ/XCx3iFDZArfj3VlsLWQWt2y3MCRVNC97+PlNmJJr0roXM0iDqKFuy7BgNQu4If0mpqvh4xBrd27EWLl4dHHf5Kq+cRD5pipsN5v3GxXprwf3BL3/VmuKLd9hf4ie0u1gnpzG9KZFubSjrkZxktb/MlqMbajLlQKnoi6OGzE7z+jw5cYhYeGZFNb9vWFRGrZx1WOB/5rOLgibMg6o5vO9kaFCll6TSwnS5urJPq3Kcsa8kqhhPpk48beNkQ87IgLMIStVgqARPTp5bTLXS884Sr+ljm83wS57K7u2UlvPS3GKBrbAEnXoe/DR9fdDFFDQhTLXM7mKK+uAwcGFtbkRa3n5nXuCiINkf8QOwN12QzrX0ly8YeOjGpqViko6poyWimMxeibx0nCEXI4spysbfciqI9v9ZtyiYkc7ESD2EmpKZH+1UnldAIZncwtCNroKOWwUxU4mHrttaa+Obl14ma7yt7BRWVPB7YIT7MMnvKYfS4ayGYhrT+YR5Hm7sKqcssAdoH/+PdHAj+CBOJlBwUecSUApOk0Ptyg04Wge/XUr/JWRaUffZ8kep8qefI8h3xQVX6VlJ9o+vyS/VP8xSn4bL6nE8wrxAMNh04RXG0LoZfrrn97AzJhDJY0P1DKkc9lZ4AjHDZ3DKC3PYH23GQj +KkWNfHZ Yu7MZdPI5QpFAaYWyQLVmxB8O1LVqjwj41yudL7MY7Zl69uRv12rnrlckexUskr1uExUaZdEBJmsOrfcPwlC2zMwDZTB+mwmC6ydb3zIqWEBDxNCNEjEggqQY7dBJH+wHInCOSX9mM9EwZEmWpOVcEU7FPsCbiArd3dUaF1cdWReybnT2SadLl9ROa68SPN1sgrm9oEkocOHB+rVxkTMQlWpIY9tse26QBML1Nh+lrTitO5D/Lx++T7NOpg== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
None
|
expand
|
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 04534ea537c8..5a827afd8e3b 100644 --- a/net/sunrpc/auth.c +++ b/net/sunrpc/auth.c @@ -489,7 +489,7 @@ static unsigned long rpcauth_cache_shrink_count(struct shrinker *shrink, struct shrink_control *sc) { - return number_cred_unused * sysctl_vfs_cache_pressure / 100; + return number_cred_unused; } static void