aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_export.c
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-03-07 18:59:45 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-03-07 18:59:45 +0000
commitacc835fd3fca6b31d0e5b92d61009494cb98c49b (patch)
tree16fd414f740be8ed52819cbe8b506f9b4f7e7639 /sys/kern/vfs_export.c
parentf2da180f8e63380f150f2785b2fc9f1c6a78a3b6 (diff)
downloadsrc-acc835fd3fca6b31d0e5b92d61009494cb98c49b.tar.gz
src-acc835fd3fca6b31d0e5b92d61009494cb98c49b.zip
Notes
Diffstat (limited to 'sys/kern/vfs_export.c')
-rw-r--r--sys/kern/vfs_export.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c
index ee9a7f959780..aa54bd2011b5 100644
--- a/sys/kern/vfs_export.c
+++ b/sys/kern/vfs_export.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)vfs_subr.c 8.13 (Berkeley) 4/18/94
- * $Id: vfs_subr.c,v 1.17 1995/02/27 06:50:08 davidg Exp $
+ * $Id: vfs_subr.c,v 1.18 1995/02/27 10:15:38 davidg Exp $
*/
/*
@@ -826,10 +826,13 @@ vrele(vp)
panic("vrele: ref cnt");
}
#endif
- /*
- * insert at tail of LRU list
- */
- TAILQ_INSERT_TAIL(&vnode_free_list, vp, v_freelist);
+ if (vp->v_flag & VAGE) {
+ TAILQ_INSERT_HEAD(&vnode_free_list, vp, v_freelist);
+ vp->v_flag &= ~VAGE;
+ } else {
+ TAILQ_INSERT_TAIL(&vnode_free_list, vp, v_freelist);
+ }
+
VOP_INACTIVE(vp);
}