summaryrefslogtreecommitdiff
path: root/VirtualFileSystem/SyntheticFileSystem.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-11-13 13:02:39 +0100
committerAndreas Kling <awesomekling@gmail.com>2018-11-13 13:02:39 +0100
commit10c470e95f1824eeef2b0294ce68f254fe010946 (patch)
tree0a8edfa9382f26467685fe7f8eac8c2bb0e8e85d /VirtualFileSystem/SyntheticFileSystem.cpp
parent97c799576a478d3881bfff1196f0fa829d736994 (diff)
downloadserenity-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.cpp5
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;
+}