summaryrefslogtreecommitdiff
path: root/Kernel/FileSystem/Ext2FileSystem.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-02-02 16:37:52 +0100
committerAndreas Kling <kling@serenityos.org>2021-02-02 18:58:26 +0100
commitd4f40241f11a7bc40dde6c1f460625ca9e388ef5 (patch)
tree03321ce27024e10b83c6b4c085136c7cb8ef432d /Kernel/FileSystem/Ext2FileSystem.h
parent9e4dd834ab45b4785a0d4c098a2c8461b41d98b1 (diff)
downloadserenity-d4f40241f11a7bc40dde6c1f460625ca9e388ef5.zip
Ext2FS: Avoid unnecessary parent inode lookup during inode creation
Creation of new inodes is always driven by the parent inode, so we can just refer directly to it instead of looking up the parent by ID.
Diffstat (limited to 'Kernel/FileSystem/Ext2FileSystem.h')
-rw-r--r--Kernel/FileSystem/Ext2FileSystem.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Kernel/FileSystem/Ext2FileSystem.h b/Kernel/FileSystem/Ext2FileSystem.h
index 28e4b76760..55ba1eea93 100644
--- a/Kernel/FileSystem/Ext2FileSystem.h
+++ b/Kernel/FileSystem/Ext2FileSystem.h
@@ -138,8 +138,8 @@ private:
virtual const char* class_name() const override;
virtual NonnullRefPtr<Inode> root_inode() const override;
RefPtr<Inode> get_inode(InodeIdentifier) const;
- KResultOr<NonnullRefPtr<Inode>> create_inode(InodeIdentifier parent_id, const String& name, mode_t, dev_t, uid_t, gid_t);
- KResult create_directory(InodeIdentifier parent_inode, const String& name, mode_t, uid_t, gid_t);
+ KResultOr<NonnullRefPtr<Inode>> create_inode(Ext2FSInode& parent_inode, const String& name, mode_t, dev_t, uid_t, gid_t);
+ KResult create_directory(Ext2FSInode& parent_inode, const String& name, mode_t, uid_t, gid_t);
virtual void flush_writes() override;
BlockIndex first_block_index() const;