aboutsummaryrefslogtreecommitdiff
path: root/sys/fs/unionfs
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2008-11-04 18:54:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2008-11-04 18:54:44 +0000
commit7265164f53036a382e3ee65f7416b076145e300c (patch)
tree1560a1c47e1c30c2f6ffdfdc827600928c851d5c /sys/fs/unionfs
parentb1b3a8653d0699479db2e24a1f3a9b1669fef569 (diff)
Notes
Diffstat (limited to 'sys/fs/unionfs')
-rw-r--r--sys/fs/unionfs/union_vfsops.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/fs/unionfs/union_vfsops.c b/sys/fs/unionfs/union_vfsops.c
index e0a318878a50e..768c94d73f8f8 100644
--- a/sys/fs/unionfs/union_vfsops.c
+++ b/sys/fs/unionfs/union_vfsops.c
@@ -268,7 +268,7 @@ unionfs_domount(struct mount *mp, struct thread *td)
/*
* Find upper node
*/
- NDINIT(ndp, LOOKUP, FOLLOW | WANTPARENT | LOCKLEAF, UIO_SYSSPACE, target, td);
+ NDINIT(ndp, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, target, td);
if ((error = namei(ndp)))
return (error);
@@ -278,9 +278,6 @@ unionfs_domount(struct mount *mp, struct thread *td)
lowerrootvp = mp->mnt_vnodecovered;
upperrootvp = ndp->ni_vp;
- vrele(ndp->ni_dvp);
- ndp->ni_dvp = NULLVP;
-
/* create unionfs_mount */
ump = (struct unionfs_mount *)malloc(sizeof(struct unionfs_mount),
M_UNIONFSMNT, M_WAITOK | M_ZERO);