* vfs_init() is now called later in the startup sequence - since no core kernel

service depends on it, it doesn't make any sense to call it that early in the
  game.
* The VFS now has a low memory handler for vnodes as well. If there is enough
  memory left, it won't free any vnodes anymore.
* Potential crashing bug fix: some functions did not check if the FD passed
  in belonged to the right type; they just assumed it had a valid vnode, but
  it could have had a mount structure associated as well.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@15566 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2005-12-16 16:11:36 +00:00
parent 4c0f46e2a3
commit d0d37bdfd1
4 changed files with 87 additions and 20 deletions
+2 -2
View File
@@ -128,8 +128,6 @@ _start(kernel_args *bootKernelArgs, int currentCPU)
generic_syscall_init();
TRACE(("init cbuf\n"));
cbuf_init();
TRACE(("init VFS\n"));
vfs_init(&sKernelArgs);
TRACE(("init teams\n"));
team_init(&sKernelArgs);
TRACE(("init threads\n"));
@@ -145,6 +143,8 @@ _start(kernel_args *bootKernelArgs, int currentCPU)
elf_init(&sKernelArgs);
TRACE(("init scheduler\n"));
scheduler_init();
TRACE(("init VFS\n"));
vfs_init(&sKernelArgs);
// start a thread to finish initializing the rest of the system
thread = spawn_kernel_thread(&main2, "main2", B_NORMAL_PRIORITY, NULL);