diff options
author | jeff <jeff@FreeBSD.org> | 2005-03-24 06:02:37 +0000 |
---|---|---|
committer | jeff <jeff@FreeBSD.org> | 2005-03-24 06:02:37 +0000 |
commit | 9b04831cbb8333e22d84893b3cd728a3cda5809b (patch) | |
tree | e243c2c4cb2baae41ebc91b09eb200506c77c0b4 /sys/kern/vfs_lookup.c | |
parent | 6ef6841ac5948e40ecfdad9ab3c9672288be3f87 (diff) | |
download | FreeBSD-src-9b04831cbb8333e22d84893b3cd728a3cda5809b.zip FreeBSD-src-9b04831cbb8333e22d84893b3cd728a3cda5809b.tar.gz |
- Clear LOCKSHARED if LOOKUP_SHARED is not enabled. This is not strictly
necessary since we disable the shared locks in vfs_cache, but it is
prefered that the option not leak out into filesystems when it is
disabled.
Sponsored by: Isilon Systems, Inc.
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 52945a9..dcbc154 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -117,6 +117,9 @@ namei(ndp) ("namei: nameiop contaminated with flags")); KASSERT((cnp->cn_flags & OPMASK) == 0, ("namei: flags contaminated with nameiops")); +#ifndef LOOKUP_SHARED + cnp->cn_flags &= ~LOCKSHARED; +#endif fdp = p->p_fd; /* |