Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107123623
D41763.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41763.diff
View Options
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c
--- a/sys/kern/vfs_cache.c
+++ b/sys/kern/vfs_cache.c
@@ -990,10 +990,10 @@
"VFS cache effectiveness statistics");
static void
-cache_recalc_neg_min(u_int val)
+cache_recalc_neg_min(void)
{
- neg_min = (ncsize * val) / 100;
+ neg_min = (ncsize * ncnegminpct) / 100;
}
static int
@@ -1012,7 +1012,7 @@
if (val < 0 || val > 99)
return (EINVAL);
ncnegminpct = val;
- cache_recalc_neg_min(val);
+ cache_recalc_neg_min();
return (0);
}
@@ -2652,7 +2652,7 @@
VFS_SMR_ZONE_SET(cache_zone_large_ts);
ncsize = desiredvnodes * ncsizefactor;
- cache_recalc_neg_min(ncnegminpct);
+ cache_recalc_neg_min();
nchashtbl = nchinittbl(desiredvnodes * 2, &nchash);
ncbuckethash = cache_roundup_2(mp_ncpus * mp_ncpus) - 1;
if (ncbuckethash < 7) /* arbitrarily chosen to avoid having one lock */
@@ -2796,7 +2796,7 @@
}
}
ncsize = newncsize;
- cache_recalc_neg_min(ncnegminpct);
+ cache_recalc_neg_min();
cache_changesize_set_new(new_nchashtbl, new_nchash);
cache_unlock_all_buckets();
cache_unlock_all_vnodes();
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Jan 11, 11:51 AM (20 h, 3 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15753483
Default Alt Text
D41763.diff (1 KB)
Attached To
Mode
D41763: VFS cache: Drop known argument of internal cache_recalc_neg_min()
Attached
Detach File
Event Timeline
Log In to Comment