Page MenuHomeFreeBSD

D50338.id155414.diff
No OneTemporary

D50338.id155414.diff

diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -1996,11 +1996,18 @@
mtx_lock(&vnode_list_mtx);
+ if (rnumvnodes + 1 < desiredvnodes) {
+ vn_alloc_cyclecount = 0;
+ mtx_unlock(&vnode_list_mtx);
+ goto alloc;
+ }
+
rfreevnodes = vnlru_read_freevnodes();
if (vn_alloc_cyclecount++ >= rfreevnodes) {
vn_alloc_cyclecount = 0;
vstir = true;
}
+
/*
* Grow the vnode cache if it will not be above its target max after
* growing. Otherwise, if there is at least one free vnode, try to

File Metadata

Mime Type
text/plain
Expires
Wed, Nov 19, 9:14 PM (4 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25678733
Default Alt Text
D50338.id155414.diff (570 B)

Event Timeline