The branch stable/13 has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=99496960345e0400ab10e03b1ff580bdc4bfec1f

commit 99496960345e0400ab10e03b1ff580bdc4bfec1f
Author:     Mateusz Guzik <m...@freebsd.org>
AuthorDate: 2023-09-16 08:19:24 +0000
Commit:     Mateusz Guzik <m...@freebsd.org>
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

Reply via email to