Call file_map_init(). Otherwise the static lock isn't initialized.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29581 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -15,6 +15,7 @@
|
|||||||
|
|
||||||
#include <block_cache.h>
|
#include <block_cache.h>
|
||||||
#include <condition_variable.h>
|
#include <condition_variable.h>
|
||||||
|
#include <file_cache.h>
|
||||||
|
|
||||||
#include "HaikuKernelIORequest.h"
|
#include "HaikuKernelIORequest.h"
|
||||||
#include "HaikuKernelVolume.h"
|
#include "HaikuKernelVolume.h"
|
||||||
@@ -121,6 +122,11 @@ HaikuKernelFileSystem::Init()
|
|||||||
if (error != B_OK)
|
if (error != B_OK)
|
||||||
RETURN_ERROR(error);
|
RETURN_ERROR(error);
|
||||||
|
|
||||||
|
// init file map
|
||||||
|
error = file_map_init();
|
||||||
|
if (error != B_OK)
|
||||||
|
RETURN_ERROR(error);
|
||||||
|
|
||||||
// create I/O request map
|
// create I/O request map
|
||||||
fIORequests = new(std::nothrow) IORequestTable;
|
fIORequests = new(std::nothrow) IORequestTable;
|
||||||
if (fIORequests == NULL)
|
if (fIORequests == NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user