Changeset View
Changeset View
Standalone View
Standalone View
sys/fs/pseudofs/pseudofs_vncache.c
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Lines | |||||
static MALLOC_DEFINE(M_PFSVNCACHE, "pfs_vncache", "pseudofs vnode cache"); | static MALLOC_DEFINE(M_PFSVNCACHE, "pfs_vncache", "pseudofs vnode cache"); | ||||
static struct mtx pfs_vncache_mutex; | static struct mtx pfs_vncache_mutex; | ||||
static eventhandler_tag pfs_exit_tag; | static eventhandler_tag pfs_exit_tag; | ||||
static void pfs_exit(void *arg, struct proc *p); | static void pfs_exit(void *arg, struct proc *p); | ||||
static void pfs_purge_all(void); | static void pfs_purge_all(void); | ||||
static SYSCTL_NODE(_vfs_pfs, OID_AUTO, vncache, CTLFLAG_RW, 0, | static SYSCTL_NODE(_vfs_pfs, OID_AUTO, vncache, CTLFLAG_RW | CTLFLAG_MPSAFE, 0, | ||||
"pseudofs vnode cache"); | "pseudofs vnode cache"); | ||||
static int pfs_vncache_entries; | static int pfs_vncache_entries; | ||||
SYSCTL_INT(_vfs_pfs_vncache, OID_AUTO, entries, CTLFLAG_RD, | SYSCTL_INT(_vfs_pfs_vncache, OID_AUTO, entries, CTLFLAG_RD, | ||||
&pfs_vncache_entries, 0, | &pfs_vncache_entries, 0, | ||||
"number of entries in the vnode cache"); | "number of entries in the vnode cache"); | ||||
static int pfs_vncache_maxentries; | static int pfs_vncache_maxentries; | ||||
▲ Show 20 Lines • Show All 296 Lines • Show Last 20 Lines |