mirror of
https://github.com/RGBCube/serenity
synced 2026-01-13 10:51:00 +00:00
Remove the cheesy block cache from DiskBackedFS.
This should be reimplemented with proper paging support. This approach was mostly just chewing kmalloc memory.
This commit is contained in:
parent
4b6a8f8a08
commit
42d9f18cae
3 changed files with 1 additions and 37 deletions
|
|
@ -2,8 +2,6 @@
|
|||
|
||||
#include "FileSystem.h"
|
||||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/HashMap.h>
|
||||
#include <AK/Lock.h>
|
||||
|
||||
class DiskBackedFS : public FS {
|
||||
public:
|
||||
|
|
@ -18,7 +16,6 @@ protected:
|
|||
explicit DiskBackedFS(RetainPtr<DiskDevice>&&);
|
||||
|
||||
void setBlockSize(unsigned);
|
||||
void invalidateCaches();
|
||||
|
||||
ByteBuffer readBlock(unsigned index) const;
|
||||
ByteBuffer readBlocks(unsigned index, unsigned count) const;
|
||||
|
|
@ -29,7 +26,4 @@ protected:
|
|||
private:
|
||||
size_t 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