Kernel: Remove unnecessary hash map lookups

This commit is contained in:
2024-12-15 20:47:40 +02:00
parent a7e06715ba
commit 1815a913c3
3 changed files with 9 additions and 6 deletions

View File

@@ -68,8 +68,9 @@ namespace Kernel
{
LockGuard _(m_mutex);
if (m_inode_cache.contains(ino))
return m_inode_cache[ino];
auto it = m_inode_cache.find(ino);
if (it != m_inode_cache.end())
return it->value;
TmpInodeInfo inode_info;