svn commit: r184597 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Mon Nov 3 11:33:21 PST 2008
Author: jhb
Date: Mon Nov 3 19:33:20 2008
New Revision: 184597
URL: http://svn.freebsd.org/changeset/base/184597
Log:
A few style nits.
Modified:
head/sys/kern/vfs_lookup.c
Modified: head/sys/kern/vfs_lookup.c
==============================================================================
--- head/sys/kern/vfs_lookup.c Mon Nov 3 18:28:12 2008 (r184596)
+++ head/sys/kern/vfs_lookup.c Mon Nov 3 19:33:20 2008 (r184597)
@@ -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);
}
/*
More information about the svn-src-head
mailing list