summaryrefslogtreecommitdiffstats
path: root/sys/fs/portalfs
diff options
context:
space:
mode:
authorjeff <jeff@FreeBSD.org>2005-03-28 09:34:36 +0000
committerjeff <jeff@FreeBSD.org>2005-03-28 09:34:36 +0000
commitb136fd4eeec08b4463f68e065e6aa2a33f14b660 (patch)
tree3389742b8c4fd07ec495c3a6df23823b2153cd70 /sys/fs/portalfs
parent0afa18e58f0050e8bf00de7ba60dd9a366b273b5 (diff)
downloadFreeBSD-src-b136fd4eeec08b4463f68e065e6aa2a33f14b660.zip
FreeBSD-src-b136fd4eeec08b4463f68e065e6aa2a33f14b660.tar.gz
- We no longer have to bother with PDIRUNLOCK, lookup() handles it for us.
Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/fs/portalfs')
-rw-r--r--sys/fs/portalfs/portal_vnops.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/fs/portalfs/portal_vnops.c b/sys/fs/portalfs/portal_vnops.c
index f6c8d61..680d1fb 100644
--- a/sys/fs/portalfs/portal_vnops.c
+++ b/sys/fs/portalfs/portal_vnops.c
@@ -122,6 +122,8 @@ portal_lookup(ap)
VREF(dvp);
return (0);
}
+ KASSERT((cnp->cn_flags & ISDOTDOT) == 0,
+ ("portal_lookup: Can not handle dotdot lookups."));
/*
* Do the MALLOC before the getnewvnode since doing so afterward
@@ -154,14 +156,6 @@ portal_lookup(ap)
*vpp = fvp;
vn_lock(fvp, LK_EXCLUSIVE | LK_RETRY, td);
- /*
- * As we are the last component of the path name, fix up
- * the locking on the directory node.
- */
- if ((cnp->cn_flags & LOCKPARENT) == 0) {
- VOP_UNLOCK(dvp, 0, td);
- cnp->cn_flags |= PDIRUNLOCK;
- }
return (0);
bad:;
OpenPOWER on IntegriCloud