mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 19:04:58 +00: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:
@@ -154,7 +154,7 @@ bool Ext2FS::initialize()
|
||||
return true;
|
||||
}
|
||||
|
||||
NonnullRefPtr<Inode> Ext2FS::root_inode() const
|
||||
Ext2FSInode& Ext2FS::root_inode()
|
||||
{
|
||||
return *m_root_inode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user