The branch main has been updated by mjg:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=509d843a982b39a531a558c65794ffffcdf93ae8

commit 509d843a982b39a531a558c65794ffffcdf93ae8
Author:     Mateusz Guzik <[email protected]>
AuthorDate: 2023-09-16 08:19:24 +0000
Commit:     Mateusz Guzik <[email protected]>
CommitDate: 2023-09-16 08:19:24 +0000

    vfs: s/u_long vstir/bool vstir/
---
 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

Reply via email to