mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-04 00:27:47 +00:00
Kernel/Ext2FS: Cache the root inode in a member variable
We often get queried for the root inode, and it will always be cached in memory anyway, so let's make Ext2FS::root_inode() fast by keeping the root inode in a dedicated member variable.
This commit is contained in:
parent
9457d83986
commit
58c6d30f6a
Notes:
sideshowbarker
2024-07-18 08:50:45 +09:00
Author: https://github.com/awesomekling
Commit: 58c6d30f6a
4 changed files with 13 additions and 4 deletions
|
@ -23,6 +23,7 @@ public:
|
|||
Inode& guest() { return *m_guest; }
|
||||
|
||||
FileSystem const& guest_fs() const { return *m_guest_fs; }
|
||||
FileSystem& guest_fs() { return *m_guest_fs; }
|
||||
|
||||
String absolute_path() const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue