mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 08:12:27 -04:00
vfs cache: mark vfs.cache.param.size as read-only
It was not meant to be writable and writes don't work correctly as they
fail to resize the hash.
(cherry picked from commit 33fdf1afae)
This commit is contained in:
parent
fc424de7e1
commit
3f4e6aa2ae
1 changed files with 1 additions and 1 deletions
|
|
@ -405,7 +405,7 @@ static SYSCTL_NODE(_vfs_cache, OID_AUTO, param, CTLFLAG_RW | CTLFLAG_MPSAFE, 0,
|
|||
"Name cache parameters");
|
||||
|
||||
static u_int __read_mostly ncsize; /* the size as computed on creation or resizing */
|
||||
SYSCTL_UINT(_vfs_cache_param, OID_AUTO, size, CTLFLAG_RW, &ncsize, 0,
|
||||
SYSCTL_UINT(_vfs_cache_param, OID_AUTO, size, CTLFLAG_RD, &ncsize, 0,
|
||||
"Total namecache capacity");
|
||||
|
||||
u_int ncsizefactor = 2;
|
||||
|
|
|
|||
Loading…
Reference in a new issue