mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 12:25:06 +00:00
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.
This commit is contained in:
parent
9e4dd834ab
commit
d4f40241f1
2 changed files with 12 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue