diff options
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 5b6ccf6..e0684b1 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -84,14 +84,13 @@ static struct vnode *vp_crossmp; static void nameiinit(void *dummy __unused) { - int error; namei_zone = uma_zcreate("NAMEI", MAXPATHLEN, NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0); - error = getnewvnode("crossmp", NULL, &dead_vnodeops, &vp_crossmp); - if (error != 0) - panic("nameiinit: getnewvnode"); + getnewvnode("crossmp", NULL, &dead_vnodeops, &vp_crossmp); + vn_lock(vp_crossmp, LK_EXCLUSIVE); VN_LOCK_ASHARE(vp_crossmp); + VOP_UNLOCK(vp_crossmp, 0); } SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL); |