1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 10:18:15 +09:00

Kernel: Make FileSystem::root_inode() return a plain Inode&

All file system classes are expected to keep their root Inode object
in memory, so this function can safely return an Inode&.
This commit is contained in:
Andreas Kling 2021-07-18 01:50:47 +02:00
parent 58c6d30f6a
commit 1f18558ee2
Notes: sideshowbarker 2024-07-18 08:50:43 +09:00
16 changed files with 20 additions and 21 deletions

View file

@ -154,7 +154,7 @@ bool Ext2FS::initialize()
return true;
}
NonnullRefPtr<Inode> Ext2FS::root_inode() const
Ext2FSInode& Ext2FS::root_inode()
{
return *m_root_inode;
}