Page MenuHomeFreeBSD

D1671.1794789681.diff
No OneTemporary

Authored By
Unknown
Size
717 B
Referenced Files
None
Subscribers
None

D1671.1794789681.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
Mon, Nov 16, 12:41 AM (16 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
41752842
Default Alt Text
D1671.1794789681.diff (717 B)

Event Timeline