From nobody Fri Oct 13 23:53:46 2023 X-Original-To: dev-commits-src-branches@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 4S6jyL586qz4wyQ1; Fri, 13 Oct 2023 23:53:46 +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 4S6jyL4K7Pz3JZ3; Fri, 13 Oct 2023 23:53:46 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697241226; 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=I+3vrpHg0fIaN1MyE7h+Odq+8o/MM2sSL3VVUfFAUas=; b=oAWwIg+2cGs8zuV9WpiwiOwnxqy+G1HB2MyRcxkzWg4UG0bJdyVgy4dbIM7mX+XvlhQoid w3thV7SBGUeaeOd4mJw17laKNketkN8PTln+haLpev0ALi+6c7YzGb7pVx2i8jJxQE3N9e O/d6natO4WEwI8obBW9/7MLRbLqBra+iyxVShElBF742mgWM3OhRHyuQ9h9SeNT+fZc5w0 rlJgEADcsI234ZkhdD8hv2NswcFjoZfoWs2zCXb34hdcInxsAMt6Byrd4Pw3Zhrb6AY4s7 x8tyD/eNAxQ5S5uVN+W8ZV0G1+fNqEbUuk08epR4OV0GzChIA7USumcmy3to2Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1697241226; a=rsa-sha256; cv=none; b=JE5y/71dHFLeOSWI3LANJpar37kDAVoR1pM5ts8BFuDgZfKxt8ewgtXViel6HHfsDoyIbE JfitqOna8lW2mG6Bho9U7UAb1tWwUjWQRO4XgeYUmUTDx5D+4SIh6dpWRRzBAV9ZOzxY/I A/vLn8C87Fi5sX0H/qNmIa8GmYJALAnSv7j0GOWkAG95FqUUvlexDAGUMM7yNFatQCIXXp 1XU6YjbO2UNj1/DsyEDrYofJ/CfJKdFWL44Nw78wJ7pyEJPTkvyc/EwguwYwUeoZEHWpdY n0J7xUUTEOnMwf9+oiKXWsTxepMcCofNHJpDnQ8hZsPJfZaKAafZL2veQJC+sA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1697241226; 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=I+3vrpHg0fIaN1MyE7h+Odq+8o/MM2sSL3VVUfFAUas=; b=Tp48PeEfUprPFRCdI2Zd+zDzCM+5jk2oeNBpoEGXYceU7+jQH4AxinI5crmPnJlzm+1O5Q o0kzy4Zo5Gw4LEhx79lnm8ccqcCdXXkkLMCw8BenGdW5vMn0v8Hn+JtTcUdFk3cnF/zfrt VXuE9lkXZvlSiSxNUnm7JtqxZnMjTWLj+DCAAsL0fXop1EQi3bZQIm4+83fW7NDl/JT6A9 zHVNlQ/g5wVyqADEVSuqPM5X/2mJiUhJ39Ko0FWKRrK8F6sa6K8XZuHGcvzFmEPyYXrh2v H80RLDOWp4EedoMrGnwRr85xq5HyUeivJle9OmL3EyOMlRhDtS1c+dgFt/ACkQ== 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 4S6jyL34snz17qk; Fri, 13 Oct 2023 23:53:46 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 39DNrkgQ031857; Fri, 13 Oct 2023 23:53:46 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 39DNrklr031854; Fri, 13 Oct 2023 23:53:46 GMT (envelope-from git) Date: Fri, 13 Oct 2023 23:53:46 GMT Message-Id: <202310132353.39DNrklr031854@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Mateusz Guzik Subject: git: 6ec7f96c6c63 - stable/13 - vfs cache: mark vfs.cache.param.size as read-only List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-branches@freebsd.org X-BeenThere: dev-commits-src-branches@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 6ec7f96c6c6364919f72ef3dddc9d6677ca34654 Auto-Submitted: auto-generated The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=6ec7f96c6c6364919f72ef3dddc9d6677ca34654 commit 6ec7f96c6c6364919f72ef3dddc9d6677ca34654 Author: Mateusz Guzik AuthorDate: 2023-09-22 21:32:23 +0000 Commit: Mateusz Guzik CommitDate: 2023-10-13 23:48:11 +0000 vfs cache: mark vfs.cache.param.size as read-only It was not meant to be writable and writes don't work correctly as they fail to resize the hash. (cherry picked from commit 33fdf1afaea931eaa5dd14e6c097d7ffafe2fb1a) --- sys/kern/vfs_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index a98b0e5ce411..671451cadabc 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -405,7 +405,7 @@ static SYSCTL_NODE(_vfs_cache, OID_AUTO, param, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, "Name cache parameters"); static u_int __read_mostly ncsize; /* the size as computed on creation or resizing */ -SYSCTL_UINT(_vfs_cache_param, OID_AUTO, size, CTLFLAG_RW, &ncsize, 0, +SYSCTL_UINT(_vfs_cache_param, OID_AUTO, size, CTLFLAG_RD, &ncsize, 0, "Total namecache capacity"); u_int ncsizefactor = 2;