mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:28:11 +00:00
Add an inode metadata cache to the ext2fs implementation.
This commit is contained in:
parent
4259ffb080
commit
8e640539ef
7 changed files with 57 additions and 5 deletions
|
@ -3,6 +3,7 @@
|
|||
#include "FileSystem.h"
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/Lock.h>
|
||||
|
||||
class DiskBackedFileSystem : public FileSystem {
|
||||
public:
|
||||
|
@ -28,5 +29,7 @@ protected:
|
|||
private:
|
||||
unsigned m_blockSize { 0 };
|
||||
RetainPtr<DiskDevice> m_device;
|
||||
|
||||
mutable SpinLock m_blockCacheLock;
|
||||
mutable HashMap<unsigned, ByteBuffer> m_blockCache;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue