mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 00:22:36 +02:00
Add an inode metadata cache to the ext2fs implementation.
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 18:36:42 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/8e640539ef3
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user