mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00:00
Get rid of Vnode concept.
We already have an abstraction between Process and Inode/CharacterDevice/FIFO and it's called FileDescriptor. :^)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include <AK/HashMap.h>
|
||||
#include <LibC/errno_numbers.h>
|
||||
#include "FileSystem.h"
|
||||
#include "MemoryManager.h"
|
||||
|
||||
static dword s_lastFileSystemID;
|
||||
static HashMap<dword, FS*>* s_fs_map;
|
||||
@@ -14,7 +15,7 @@ static HashMap<dword, FS*>& all_fses()
|
||||
return *s_fs_map;
|
||||
}
|
||||
|
||||
static HashTable<Inode*>& all_inodes()
|
||||
HashTable<Inode*>& all_inodes()
|
||||
{
|
||||
if (!s_inode_set)
|
||||
s_inode_set = new HashTable<Inode*>();
|
||||
@@ -143,3 +144,8 @@ void FS::sync()
|
||||
inode->flush_metadata();
|
||||
}
|
||||
}
|
||||
|
||||
void Inode::set_vmo(RetainPtr<VMObject>&& vmo)
|
||||
{
|
||||
m_vmo = move(vmo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user