summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorcsjp <csjp@FreeBSD.org>2008-08-24 20:16:44 +0000
committercsjp <csjp@FreeBSD.org>2008-08-24 20:16:44 +0000
commite30e00f1b7d10c5c1372d16f3ece0f6cceeb5442 (patch)
treeefdfcd3b370fe7bb76363e5e3728774d5d51ca43 /sys/kern/vfs_subr.c
parent504a0eb6a5625b677eb19c22ebc8aa8d39764e44 (diff)
downloadFreeBSD-src-e30e00f1b7d10c5c1372d16f3ece0f6cceeb5442.zip
FreeBSD-src-e30e00f1b7d10c5c1372d16f3ece0f6cceeb5442.tar.gz
Remove worrying printf warning on bootup when processing vnodes which
have NULL mount-points. This is the case for special vnodes, such as the one used in nameiinit() which is used for crossing mount points in lookup() to avoid lock ordering issues. MFC after: 2 weeks Discussed with: rwatson, kib
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index f640299..7c7b2a5 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -968,7 +968,7 @@ alloc:
mac_vnode_init(vp);
if (mp != NULL && (mp->mnt_flag & MNT_MULTILABEL) == 0)
mac_vnode_associate_singlelabel(mp, vp);
- else if (mp == NULL)
+ else if (mp == NULL && vops != &dead_vnodeops)
printf("NULL mp in getnewvnode()\n");
#endif
if (mp != NULL) {
OpenPOWER on IntegriCloud