diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-11-13 13:02:39 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-11-13 13:02:39 +0100 |
commit | 10c470e95f1824eeef2b0294ce68f254fe010946 (patch) | |
tree | 0a8edfa9382f26467685fe7f8eac8c2bb0e8e85d /VirtualFileSystem/SyntheticFileSystem.cpp | |
parent | 97c799576a478d3881bfff1196f0fa829d736994 (diff) | |
download | serenity-10c470e95f1824eeef2b0294ce68f254fe010946.zip |
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.
Diffstat (limited to 'VirtualFileSystem/SyntheticFileSystem.cpp')
-rw-r--r-- | VirtualFileSystem/SyntheticFileSystem.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/VirtualFileSystem/SyntheticFileSystem.cpp b/VirtualFileSystem/SyntheticFileSystem.cpp index 676aff6b80..8343ffb438 100644 --- a/VirtualFileSystem/SyntheticFileSystem.cpp +++ b/VirtualFileSystem/SyntheticFileSystem.cpp @@ -249,3 +249,8 @@ InodeIdentifier SyntheticFileSystem::findParentOfInode(InodeIdentifier inode) co return { }; return (*it).value->parent; } + +RetainPtr<CoreInode> SyntheticFileSystem::get_inode(InodeIdentifier) +{ + return nullptr; +} |