mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +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:
parent
58c6d30f6a
commit
1f18558ee2
Notes:
sideshowbarker
2024-07-18 08:50:43 +09:00
Author: https://github.com/awesomekling
Commit: 1f18558ee2
16 changed files with 20 additions and 21 deletions
|
@ -51,7 +51,7 @@ static InodeIndex pty_index_to_inode_index(unsigned pty_index)
|
|||
return pty_index + 2;
|
||||
}
|
||||
|
||||
NonnullRefPtr<Inode> DevPtsFS::root_inode() const
|
||||
Inode& DevPtsFS::root_inode()
|
||||
{
|
||||
return *m_root_inode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue