aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/sys/vnode.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/include/sys/vnode.h b/sys/include/sys/vnode.h
index 33d5b17..d9f9afe 100644
--- a/sys/include/sys/vnode.h
+++ b/sys/include/sys/vnode.h
@@ -48,6 +48,15 @@ struct vnode {
TAILQ_ENTRY(vnode) vcache_link;
};
+/*
+ * Vnode cache, can be per-process or
+ * global.
+ */
+struct vcache {
+ TAILQ_HEAD(vcache_head, vnode) q;
+ ssize_t size; /* In entries (-1 not set up) */
+};
+
#define vfs_vref(VP) (atomic_inc_int(&(VP)->refcount))
/* vcache types */