Message ID | 20241223141550.638616-12-yukaixiong@huawei.com |
---|---|
State | New |
Headers | show
Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 34BB51D86CE; Mon, 23 Dec 2024 14:20:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.32 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734963613; cv=none; b=Lol2RjVyUfNW+DQLPAvbSA7DFBSojJAqmnFZo24GYOD322YmIFjmN/qjb5gxD9f4kiMzVgLBZvZ37Uy0PZnBzDt7CkBsLCDCs/h7vt8vG8eKfmUBAAufoqtUv39I2hzKYao17qwrQ6DvN3uvQ3SMRu8C3eGlpJ8N2YRwvEqp2Nw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734963613; c=relaxed/simple; bh=IdHQmWyFeAejWwE0EfX+57lJCHs3w51Kv+o9VdEPcQ0=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oMinDgiLvl3OIczbwbbrU/0utqzJyX27qH2GsPiLWCcEqwAPOHg2nLJICbd1BIjgS+bn1h3tTWXit3hehk+hTbp9ZPBtg6Ds74Y5TenLLdnpOCMQiHzdGHMcfJG5lqioNJrz0lWiOo+vquX4oXNdxUdIFjEme98ppCoDhTI8buw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.44]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4YH0Y932FCz20mdY; Mon, 23 Dec 2024 22:20:29 +0800 (CST) Received: from kwepemh100016.china.huawei.com (unknown [7.202.181.102]) by mail.maildlp.com (Postfix) with ESMTPS id E624E1402DE; Mon, 23 Dec 2024 22:20:09 +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:06 +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:30 +0800 Message-ID: <20241223141550.638616-12-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> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To kwepemh100016.china.huawei.com (7.202.181.102) |
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..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