mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-16 14:32:18 +00:00
TmpFS: Avoid unnecessary inode lookup in TmpFSInode::lookup()
We don't have to ask the VFS to find our child inode, we have a pointer to it right here.
This commit is contained in:
parent
eeaba41d13
commit
c096cb9352
Notes:
sideshowbarker
2024-07-19 03:26:15 +09:00
Author: https://github.com/awesomekling
Commit: c096cb9352
1 changed files with 1 additions and 1 deletions
|
@ -218,7 +218,7 @@ RefPtr<Inode> TmpFSInode::lookup(StringView name)
|
|||
auto it = m_children.find(name);
|
||||
if (it == m_children.end())
|
||||
return {};
|
||||
return fs().get_inode(it->value.entry.inode);
|
||||
return it->value.inode;
|
||||
}
|
||||
|
||||
KResultOr<size_t> TmpFSInode::directory_entry_count() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue