Page MenuHomeFreeBSD

D1671.id3431.diff
No OneTemporary

D1671.id3431.diff

Index: sys/kern/vfs_subr.c
===================================================================
--- sys/kern/vfs_subr.c
+++ sys/kern/vfs_subr.c
@@ -156,6 +156,10 @@
SYSCTL_INT(_vfs, OID_AUTO, vlru_allow_cache_src, CTLFLAG_RW,
&vlru_allow_cache_src, 0, "Allow vlru to reclaim source vnode");
+static u_long recycles_count;
+SYSCTL_ULONG(_vfs, OID_AUTO, recycles, CTLFLAG_RW, &recycles_count, 0,
+ "Number of vnodes recycled");
+
/*
* Various variables used for debugging the new implementation of
* reassignbuf().
@@ -988,6 +992,7 @@
__func__, vp);
return (EBUSY);
}
+ atomic_add_long(&recycles_count, 1);
if ((vp->v_iflag & VI_DOOMED) == 0)
vgonel(vp);
VOP_UNLOCK(vp, LK_INTERLOCK);

File Metadata

Mime Type
text/plain
Expires
Sat, May 16, 9:24 AM (20 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33124717
Default Alt Text
D1671.id3431.diff (717 B)

Event Timeline