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:
Andreas Kling 2018-11-13 13:02:39 +01:00
parent 97c799576a
commit 10c470e95f
Notes: sideshowbarker 2024-07-19 16:10:46 +09:00
12 changed files with 177 additions and 152 deletions

View file

@ -249,3 +249,8 @@ InodeIdentifier SyntheticFileSystem::findParentOfInode(InodeIdentifier inode) co
return { };
return (*it).value->parent;
}
RetainPtr<CoreInode> SyntheticFileSystem::get_inode(InodeIdentifier)
{
return nullptr;
}