diff options
| author | Jeff Roberson <jeff@FreeBSD.org> | 2005-04-04 09:36:26 +0000 |
|---|---|---|
| committer | Jeff Roberson <jeff@FreeBSD.org> | 2005-04-04 09:36:26 +0000 |
| commit | 9370c333cecd3f81d35d000764072ff337cacbd9 (patch) | |
| tree | 364953b0b8cf54a0e93ec2af7be9cc9c3c69fe07 /sys | |
| parent | 9fc371f86b5c52603691a732822774f5523de867 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/fs/unionfs/union_vnops.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index 04e1ba21ba99..ae80503fa79e 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -228,15 +228,15 @@ union_lookup1(udvp, pdvp, vpp, cnp) } /* - * The parent directory will have been unlocked, unless lookup - * found the last component or if dvp == tdvp (tdvp must be locked). + * The parent directory will have been unlocked, unless this is a + * dotdot lookup or if dvp == tdvp (tdvp must be locked). * * We want our dvp to remain locked and ref'd. We also want tdvp * to remain locked and ref'd. */ UDEBUG(("parentdir %p result %p flag %lx\n", dvp, tdvp, cnp->cn_flags)); - if (dvp != tdvp && (cnp->cn_flags & ISLASTCN) == 0) + if (dvp != tdvp && (cnp->cn_flags & ISDOTDOT)) vn_lock(dvp, LK_EXCLUSIVE | LK_RETRY, td); /* |
