diff options
author | Andreas Kling <kling@serenityos.org> | 2020-08-22 17:53:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-22 18:01:59 +0200 |
commit | 2fd9e722647b0a9b90b0380b898c17787918b451 (patch) | |
tree | 812bea0de4c6d9ce8767ea3b7d0dc1a0a6eb331b /Kernel/FileSystem/FileSystem.cpp | |
parent | 0addcb45b83cc46382dc249619b0ae1f12c59dba (diff) | |
download | serenity-2fd9e722647b0a9b90b0380b898c17787918b451.zip |
Revert "Kernel: Switch singletons to use new Singleton class"
This reverts commit f48feae0b2a300992479abf0b2ded85e45ac6045.
Diffstat (limited to 'Kernel/FileSystem/FileSystem.cpp')
-rw-r--r-- | Kernel/FileSystem/FileSystem.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Kernel/FileSystem/FileSystem.cpp b/Kernel/FileSystem/FileSystem.cpp index 450f401253..e4ed6fd98b 100644 --- a/Kernel/FileSystem/FileSystem.cpp +++ b/Kernel/FileSystem/FileSystem.cpp @@ -31,17 +31,18 @@ #include <Kernel/FileSystem/FileSystem.h> #include <Kernel/FileSystem/Inode.h> #include <Kernel/Net/LocalSocket.h> -#include <Kernel/Singleton.h> #include <Kernel/VM/MemoryManager.h> #include <LibC/errno_numbers.h> namespace Kernel { static u32 s_lastFileSystemID; -static auto s_fs_map = make_singleton<HashMap<u32, FS*>>(); +static HashMap<u32, FS*>* s_fs_map; static HashMap<u32, FS*>& all_fses() { + if (!s_fs_map) + s_fs_map = new HashMap<u32, FS*>(); return *s_fs_map; } |