diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2004-01-06 04:23:00 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2004-01-06 04:23:00 +0000 |
commit | 2a93b8cec68a87b45f96874d997d79df3d8a7483 (patch) | |
tree | 9c1a36b3beedbddc9a4f62416d7e0797bc7e79c2 /sys/kern | |
parent | 24a4ca6116963009f48b3a9dc80fb2a91cf8f2d7 (diff) |
keep track of a vnode's parent dir. ufs only, and unused atm, but
the fun stuff is coming. testing by brad.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 54e92f6bf62..5174da110a9 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.95 2003/07/21 22:44:50 tedu Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.96 2004/01/06 04:22:59 tedu Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -1052,6 +1052,10 @@ vclean(vp, flags, p) /* * Reclaim the vnode. */ + if (vp->v_parent) { + vrele(vp->v_parent); + vp->v_parent = NULL; + } if (VOP_RECLAIM(vp, p)) panic("vclean: cannot reclaim"); if (active) { |