From nobody Fri Sep 22 21:51:23 2023 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 4RsmDq5rp6z4tTMg; Fri, 22 Sep 2023 21:51:23 +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 4RsmDq55XLz3QCZ; Fri, 22 Sep 2023 21:51:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1695419483; 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=uQcee1Ihcfs+UsUmQTqwe+GLH156r9BpOPzWYVZxDHQ=; b=ixOEwB66uKa7XDwdcWbmJAE46/7zhu4nf/HjmZ3hFNjg6vFzSGn/jT982Wxq/BD5GWAnFs tHW7hiCSo/cF9ufMRYJLAE4q3LevsBalyNNRtnJboM36mwTJNTFKiqKvEFTp4teEnsXDK4 wnBE8mS5IypfTyqaYS/AgJ3QtE7YNMeXU5q6DxreCADpqkf4YhwYXEMj1hXHs3nCpet6Jh et8K+UCTvR7AoLIpmNkfm6iVbDJVR76UD9h6xY5YpORWsmcpGiQhfyQe6EsOFM4350Sn4M 9oBYp7jhgGFjGXQ9D+EDJNM3a1Muz0mEUTk3coCL4cirH+ATqsU9L3pK5xxjug== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1695419483; a=rsa-sha256; cv=none; b=IlKnlCYO/x8O6RmCr7xkHPUcfqkTqlhJ+Kc1+viFvUTwaJcscN3uE+K1dQk7yloeR+IRCY vE8AN5yfVzzOSlVGc00NRt54RpKXg73u0DJMJW/KGm7wwrO7+ObtZKBYZ5UEpuqH4wxgzB eMVVwgBtP1AGtMYkubaeucwfskgCimXg9vB5qT+gHFhHfzwMlNKmUCP1oALS/5phi6h/xJ EGskIx0k614ZHvi5HMJ/KIr60Or0i4ouyJkzEhCSRKkTElvaziii4ilIFGkkngMSAe1Tih 7OneJQAyqxH/BosF0iun79pXT/sWX7Fuq+fS+2AcF9RKaVMCG4P4RvoDwMD8LQ== 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=1695419483; 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=uQcee1Ihcfs+UsUmQTqwe+GLH156r9BpOPzWYVZxDHQ=; b=AeiCQHy5u196gGvjoeGnk5We9mOwiHiFhq8l2nOQRoFU0JJpe88lEB0VX46r9DrDnXIVlZ AvcKGepO1rQsIBKxI7WAdzbLvFkS3VMp3MF7kj9DeDwGyuHZKHOegQemrUHWWBaqXhZKdP 16GoldG+au/9J5yhofAO4d1ikUQdD6bkwJ3AitHLFA5nQNqGSKG66oGTO1yuO91HwxQdkt 6KKv3St51i6i4X5Aqf7QA8SNRfPYpJmFDs4R/C+lZQHrtQGFzJ24mZa5+0AxMO4u7gnhqh JHIJpxiJXjOkZG99P4Amrw+OASYTg4nNYTF9BZjtc9ldN8PYCHZ3rvQnP+oKoA== 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 4RsmDq4BXnzf3V; Fri, 22 Sep 2023 21:51:23 +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 38MLpNkO039575; Fri, 22 Sep 2023 21:51:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 38MLpN8A039572; Fri, 22 Sep 2023 21:51:23 GMT (envelope-from git) Date: Fri, 22 Sep 2023 21:51:23 GMT Message-Id: <202309222151.38MLpN8A039572@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: 1a644e8b68be - stable/14 - vfs: s/u_long vstir/bool vstir/ 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: mjg X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1a644e8b68bef9b207eea67ccec190c7ccd26a39 Auto-Submitted: auto-generated The branch stable/14 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=1a644e8b68bef9b207eea67ccec190c7ccd26a39 commit 1a644e8b68bef9b207eea67ccec190c7ccd26a39 Author: Mateusz Guzik AuthorDate: 2023-09-16 08:19:24 +0000 Commit: Mateusz Guzik CommitDate: 2023-09-22 21:50:48 +0000 vfs: s/u_long vstir/bool vstir/ (cherry picked from commit 509d843a982b39a531a558c65794ffffcdf93ae8) --- sys/kern/vfs_subr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index a8477e4b691e..9d5b1b7e472e 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -325,7 +325,7 @@ u_long desiredvnodes; static u_long gapvnodes; /* gap between wanted and desired */ static u_long vhiwat; /* enough extras after expansion */ static u_long vlowat; /* minimal extras before expansion */ -static u_long vstir; /* nonzero to stir non-free vnodes */ +static bool vstir; /* nonzero to stir non-free vnodes */ static volatile int vsmalltrigger = 8; /* pref to keep if > this many pages */ static u_long vnlru_read_freevnodes(void); @@ -1627,7 +1627,7 @@ vnlru_proc(void) */ if (vstir && force == 0) { force = 1; - vstir = 0; + vstir = false; } if (force == 0 && !vnlru_under(rnumvnodes, vlowat)) { vnlruproc_sig = 0; @@ -1799,7 +1799,7 @@ vn_alloc_hard(struct mount *mp) rfreevnodes = vnlru_read_freevnodes(); if (vn_alloc_cyclecount++ >= rfreevnodes) { vn_alloc_cyclecount = 0; - vstir = 1; + vstir = true; } /* * Grow the vnode cache if it will not be above its target max