mirror of
https://github.com/RGBCube/serenity
synced 2025-05-18 11:45:08 +00:00
Make page_in_from_vnode 2x faster.
...by adding a new class called Ext2Inode that inherits CoreInode. The idea is that a vnode will wrap a CoreInode rather than InodeIdentifier. Each CoreInode subclass can keep whatever caches they like. Right now, Ext2Inode caches the list of block indices since it can be very expensive to retrieve.
This commit is contained in:
parent
97c799576a
commit
10c470e95f
12 changed files with 177 additions and 152 deletions
|
@ -20,6 +20,7 @@ public:
|
|||
virtual Unix::ssize_t readInodeBytes(InodeIdentifier, Unix::off_t offset, Unix::size_t count, byte* buffer, FileDescriptor*) const override;
|
||||
virtual InodeIdentifier makeDirectory(InodeIdentifier parentInode, const String& name, Unix::mode_t) override;
|
||||
virtual InodeIdentifier findParentOfInode(InodeIdentifier) const override;
|
||||
virtual RetainPtr<CoreInode> get_inode(InodeIdentifier) override;
|
||||
|
||||
protected:
|
||||
typedef unsigned InodeIndex;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue