diff options
author | 1997-11-06 05:58:00 +0000 | |
---|---|---|
committer | 1997-11-06 05:58:00 +0000 | |
commit | 07feb63c29dabe2798f31749f3e8a89dc96eee83 (patch) | |
tree | d13e0c3a511d6f2ef321c9972bd6f67a6912631c /sys/kern/init_main.c | |
parent | temp <machine_btop() fix (diff) | |
download | wireguard-openbsd-07feb63c29dabe2798f31749f3e8a89dc96eee83.tar.xz wireguard-openbsd-07feb63c29dabe2798f31749f3e8a89dc96eee83.zip |
Updates for VFS Lite 2 + soft update.
Diffstat (limited to 'sys/kern/init_main.c')
-rw-r--r-- | sys/kern/init_main.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index 15a52237c1c..553df39f764 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.28 1997/11/06 02:17:29 mickey Exp $ */ +/* $OpenBSD: init_main.c,v 1.29 1997/11/06 05:58:14 csapuntz Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -346,17 +346,16 @@ main(framep) #endif /* Mount the root file system. */ - if ((*mountroot)()) + if (vfs_mountroot()) panic("cannot mount root"); mountlist.cqh_first->mnt_flag |= MNT_ROOTFS; - mountlist.cqh_first->mnt_op->vfs_refcount++; /* Get the vnode for '/'. Set filedesc0.fd_fd.fd_cdir to reference it. */ if (VFS_ROOT(mountlist.cqh_first, &rootvnode)) panic("cannot find root vnode"); filedesc0.fd_fd.fd_cdir = rootvnode; VREF(filedesc0.fd_fd.fd_cdir); - VOP_UNLOCK(rootvnode); + VOP_UNLOCK(rootvnode, 0, p); filedesc0.fd_fd.fd_rdir = NULL; swapinit(); @@ -595,6 +594,6 @@ start_update(p) */ p->p_flag |= P_INMEM | P_SYSTEM; /* XXX */ bcopy("update", curproc->p_comm, sizeof ("update")); - vn_update(); + sched_sync(p); /* NOTREACHED */ } |