diff options
author | jhb <jhb@FreeBSD.org> | 2008-11-03 19:33:20 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-11-03 19:33:20 +0000 |
commit | 24139401dda9b044e2a3056573425cbc60ffcc20 (patch) | |
tree | 10579f56e2e584f355cb0218b59a10ac39e24785 /sys/kern | |
parent | d69ede826141642ebdded24dae56ab7fc6a42ce1 (diff) | |
download | FreeBSD-src-24139401dda9b044e2a3056573425cbc60ffcc20.zip FreeBSD-src-24139401dda9b044e2a3056573425cbc60ffcc20.tar.gz |
A few style nits.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_lookup.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index f009dac..c3e2e80 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -331,12 +331,13 @@ namei(struct nameidata *ndp) static int compute_cn_lkflags(struct mount *mp, int lkflags) { + if (mp == NULL || ((lkflags & LK_SHARED) && !(mp->mnt_kern_flag & MNTK_LOOKUP_SHARED))) { lkflags &= ~LK_SHARED; lkflags |= LK_EXCLUSIVE; } - return lkflags; + return (lkflags); } /* |