Message ID | 20240826120449.1666461-12-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 D5B59C5472C for <linux-mm@archiver.kernel.org>; Mon, 26 Aug 2024 12:06:17 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 3A4BA6B0098; Mon, 26 Aug 2024 08:06:04 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 158A46B009D; Mon, 26 Aug 2024 08:06:04 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id BBECE6B04CF; Mon, 26 Aug 2024 08:06:03 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0015.hostedemail.com [216.40.44.15]) by kanga.kvack.org (Postfix) with ESMTP id 883BC6B04CE for <linux-mm@kvack.org>; Mon, 26 Aug 2024 08:06:03 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay01.hostedemail.com (Postfix) with ESMTP id 406C51C4CF5 for <linux-mm@kvack.org>; Mon, 26 Aug 2024 12:06:03 +0000 (UTC) X-FDA: 82494268206.21.A4729E4 Received: from szxga07-in.huawei.com (szxga07-in.huawei.com [45.249.212.35]) by imf27.hostedemail.com (Postfix) with ESMTP id F303240007 for <linux-mm@kvack.org>; Mon, 26 Aug 2024 12:06:00 +0000 (UTC) Authentication-Results: imf27.hostedemail.com; dkim=none; spf=pass (imf27.hostedemail.com: domain of yukaixiong@huawei.com designates 45.249.212.35 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=1724673847; 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=1Y7ykhkiA8xxUv/SVfpu48hty0VFdDmD5CTawvTctOc=; b=qQyB0ab2FEbMHjt4l+TfDpyYcoYtp9MX4LDmkJ+ojjYbSKlzaR0o0wQxU1NHgu/enuCvo3 +7XJduy0V9X4x7IIvrcSIRcKtJNxYAsIbvddmhE8QPV9cg8Dh65Z01Ci/glILeSy7ufD2j ANEHRKipI+LKec/BFnGez8VopMftBqM= ARC-Authentication-Results: i=1; imf27.hostedemail.com; dkim=none; spf=pass (imf27.hostedemail.com: domain of yukaixiong@huawei.com designates 45.249.212.35 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=1724673847; a=rsa-sha256; cv=none; b=mqaxI/OwojHS6hbdylrG+y/GJCQuheXcKlCLynne36ax7yJqsgAH2oclHVsTmdS6RZd23O /CfdE1d1FNqwdlIAf9nPIf4dUI1gi/kiA5m1ubjw9Xvf3j62TztABQ5upEJ9sPe7gGRXjP uy78ACn7cJbtTjoirTJpXikWz+JD2iM= Received: from mail.maildlp.com (unknown [172.19.88.234]) by szxga07-in.huawei.com (SkyGuard) with ESMTP id 4WsqBS6x1zz1S916; Mon, 26 Aug 2024 20:05:36 +0800 (CST) Received: from kwepemh100016.china.huawei.com (unknown [7.202.181.102]) by mail.maildlp.com (Postfix) with ESMTPS id 5703714022F; Mon, 26 Aug 2024 20:05:46 +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, 26 Aug 2024 20:05:43 +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>, <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>, <wangkefeng.wang@huawei.com> Subject: [PATCH -next 11/15] sunrpc: use vfs_pressure_ratio() helper Date: Mon, 26 Aug 2024 20:04:45 +0800 Message-ID: <20240826120449.1666461-12-yukaixiong@huawei.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240826120449.1666461-1-yukaixiong@huawei.com> References: <20240826120449.1666461-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: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemh100016.china.huawei.com (7.202.181.102) X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: F303240007 X-Stat-Signature: j8wbgyy7ktqdwu8nntfkigtr3e4xzigi X-Rspam-User: X-HE-Tag: 1724673960-273640 X-HE-Meta: U2FsdGVkX19veI1PLPPgahcC46dVHn0j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QXautYLe6H8l/KlPZj1aliQbgv/LCvKtD7NcjPG9A44ku9xQoyR5XHM+pdHTCYPbQavJeNtLVMEE 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 |
sysctl: move sysctls from vm_table into its own files
|
expand
|
diff --git a/net/sunrpc/auth.c b/net/sunrpc/auth.c index 04534ea537c8..3d2b51d7e934 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 vfs_pressure_ratio(number_cred_unused); } static void
Use vfs_pressure_ratio() to simplify code. Signed-off-by: Kaixiong Yu <yukaixiong@huawei.com> --- net/sunrpc/auth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)