diff options
author | jeff <jeff@FreeBSD.org> | 2002-04-09 05:14:17 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2002-04-09 05:14:17 +0000 |
commit | 0b5e15cef7e330c83d47d2a7a5a4e738694c1324 (patch) | |
tree | bb0a617bffb016969e8ff3d8fdc28fa058d41c57 /sys/kern/vfs_cache.c | |
parent | f145b3f0f45ceb2c9e4fa29f25e223320156b800 (diff) | |
download | FreeBSD-src-0b5e15cef7e330c83d47d2a7a5a4e738694c1324.zip FreeBSD-src-0b5e15cef7e330c83d47d2a7a5a4e738694c1324.tar.gz |
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
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 6fd537f..49bd83f 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) { |