From nobody Wed Oct 04 12:08:57 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 4S0tlF3vxmz4vp1v; Wed, 4 Oct 2023 12:08:57 +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 4S0tlF3GdHz3JLj; Wed, 4 Oct 2023 12:08:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696421337; 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=x3nx/FhuVbLjKwTFEeDlEQoPvtle8T/eKJfLOLKGquY=; b=dz5KmZIkLjoizAJ9sWgHYbHbB//0EqbWhmcib3NuV85bzVTDdzI5nJw/BkzdmTNfrvfaHs UJrDJ5J61KB4KmuYzDnLOFBe1U8Z5qSs4d0C9jtppbTdOGuItrlhCpvaFe2uxg/iRZpAcH cbxHsukwvT1Nt2TC/kOdjJiLy1JZJHkHa/YJrl3K/P8+U4/pVRWK7YZkJiUaPk+kDpvXX7 u3bkfgOVIikVGN6pfYo94PYnx/FYvJdPhrcyGKvPn6bjgfxxxopVZtjL/UKjWWFPHF/l11 gMa232gJnq4vJpZ1GPrdf0lA9GB6scy616Z05Ec1jks7iSsCWuAp7CdRC34ZLQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696421337; a=rsa-sha256; cv=none; b=wFmlbMgIGuoOw/zG9+9yi09hWJaUV7+DJJrhoOKIGkitgH5ZlR9a31/T0javkccjMdz3oG ym2nwBLpu5eq0fsLMZcQnKBkmfN6MWvz4zbbsf2/eChFAb+V8XdOdYTsCN1rccH7yuf45L zXrLgMcgRJBk8udTeG9huhDxzjBTcw3HVhgZbNVjeVGy1VgLa4ET0ORkbWVumHUD5lhAG1 Lq7WFtlYej+GUjYgXivP+zFQxbSe6+1jvgZt4Y/zyQPB21xodIMk3twe9wjNBzY5bt8p52 wFCt2jQmpkg11HINzmyvE2/iOSUKoTefqPDGQrv2qOXTX5F514LAItSW5nrP6Q== 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=1696421337; 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=x3nx/FhuVbLjKwTFEeDlEQoPvtle8T/eKJfLOLKGquY=; b=xJPC186BgPBuW8GOgoPF9Qc/6hQ5JARoQLOP//hdJAtmwmz8xHUipjQi4oR/xnGwRcksjY 5UBI3KcKlSVloXL4K5kOY3KTdjnIHbF0tbxUAAuTLXGBP5JdYl2B4lg4dkLhKonax4MVpp 2HU9ZwN5SZ0fJWKXam39VIFVPJ9+gQBby76zikID+t3t1gdkzzMj1MHAgbfHWt0spOG6iM sslETYKb5HMurZjMRLGHpBf7lf7/iCRykMwDoehfBEjoj/nmaC0I7YFJL7dyfm4CJwSe7K Nq84JTRNnbkCLC49aPS1rLqw8VCoobyrOe5zfrS9W6NvMG8AZteTDYp1HJ6W4A== 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 4S0tlF2KkRzcWl; Wed, 4 Oct 2023 12:08:57 +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 394C8vw5053449; Wed, 4 Oct 2023 12:08:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 394C8vYY053446; Wed, 4 Oct 2023 12:08:57 GMT (envelope-from git) Date: Wed, 4 Oct 2023 12:08:57 GMT Message-Id: <202310041208.394C8vYY053446@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: 99496960345e - stable/13 - 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/13 X-Git-Reftype: branch X-Git-Commit: 99496960345e0400ab10e03b1ff580bdc4bfec1f Auto-Submitted: auto-generated The branch stable/13 has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=99496960345e0400ab10e03b1ff580bdc4bfec1f commit 99496960345e0400ab10e03b1ff580bdc4bfec1f Author: Mateusz Guzik AuthorDate: 2023-09-16 08:19:24 +0000 Commit: Mateusz Guzik CommitDate: 2023-10-04 12:05:58 +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 8c8f69c88726..b125438923bf 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -324,7 +324,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); @@ -1644,7 +1644,7 @@ vnlru_proc(void) */ if (vstir && force == 0) { force = 1; - vstir = 0; + vstir = false; } if (force == 0 && !vnlru_under(rnumvnodes, vlowat)) { vnlruproc_sig = 0; @@ -1817,7 +1817,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