diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-11 22:56:20 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-01-11 22:56:20 +0000 |
commit | 69283067644a63781f51e9b9d51135e25aa9a601 (patch) | |
tree | 9ded497127efaa0eaae1054007cc63cc59a32981 /sys/kern/vfs_cache.c | |
parent | bf62296f35ad43623aa42abfff4d5209645a26e6 (diff) | |
download | src-69283067644a63781f51e9b9d51135e25aa9a601.tar.gz src-69283067644a63781f51e9b9d51135e25aa9a601.zip |
vfs: incomplete pass at converting more ints to u_long
Most notably numvnodes and freevnodes were u_long, but parameters used to
govern them remained as ints.
Notes
Notes:
svn path=/head/; revision=356642
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 311d6a54a1fc..c33640ac758a 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -1979,13 +1979,13 @@ nchinit(void *dummy __unused) SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nchinit, NULL); void -cache_changesize(int newmaxvnodes) +cache_changesize(u_long newmaxvnodes) { struct nchashhead *new_nchashtbl, *old_nchashtbl; u_long new_nchash, old_nchash; struct namecache *ncp; uint32_t hash; - int newncsize; + u_long newncsize; int i; newncsize = newmaxvnodes * ncsizefactor; |