diff options
author | Jeff Roberson <jeff@FreeBSD.org> | 2002-04-09 05:14:17 +0000 |
---|---|---|
committer | Jeff Roberson <jeff@FreeBSD.org> | 2002-04-09 05:14:17 +0000 |
commit | a59f8b9e6cd860ecb52f9f3bcff8a2062f18a523 (patch) | |
tree | bb0a617bffb016969e8ff3d8fdc28fa058d41c57 /sys/kern/vfs_cache.c | |
parent | 1de038230a732c4d68c57a9c181e8f8e99055d22 (diff) | |
download | src-a59f8b9e6cd860ecb52f9f3bcff8a2062f18a523.tar.gz src-a59f8b9e6cd860ecb52f9f3bcff8a2062f18a523.zip |
Turn #ifdef LOOKUP_SHARED into #ifndef LOOKUP_EXCLUSIVE to enable this
behavior by default. Also, change the options line to reflect this.
If there are no problems reported this will become the only behavior and the
knob will be removed in a month or so.
Demanded by: obrien
Notes
Notes:
svn path=/head/; revision=94262
Diffstat (limited to 'sys/kern/vfs_cache.c')
-rw-r--r-- | sys/kern/vfs_cache.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index 6fd537f90b21..49bd83f0b080 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -566,7 +566,7 @@ vfs_cache_lookup(ap) error = cache_lookup(dvp, vpp, cnp); -#ifdef LOOKUP_SHARED +#ifndef LOOKUP_EXCLUSIVE if (!error) { /* We do this because the rest of the system now expects to get * a shared lock, which is later upgraded if LOCKSHARED is not @@ -608,7 +608,7 @@ vfs_cache_lookup(ap) } else if (flags & ISDOTDOT) { VOP_UNLOCK(dvp, 0, td); cnp->cn_flags |= PDIRUNLOCK; -#ifdef LOOKUP_SHARED +#ifndef LOOKUP_EXCLUSIVE if ((flags & ISLASTCN) && (flags & LOCKSHARED)) error = vget(vp, LK_SHARED, td); else @@ -622,7 +622,7 @@ vfs_cache_lookup(ap) cnp->cn_flags &= ~PDIRUNLOCK; } } else { -#ifdef LOOKUP_SHARED +#ifndef LOOKUP_EXCLUSIVE if ((flags & ISLASTCN) && (flags & LOCKSHARED)) error = vget(vp, LK_SHARED, td); else @@ -654,7 +654,7 @@ vfs_cache_lookup(ap) return (error); cnp->cn_flags &= ~PDIRUNLOCK; } -#ifdef LOOKUP_SHARED +#ifndef LOOKUP_EXCLUSIVE error = VOP_CACHEDLOOKUP(dvp, vpp, cnp); if (!error) { |