mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 04:38:11 +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
16 changed files with 20 additions and 21 deletions
|
@ -243,7 +243,7 @@ Plan9FS::ProtocolVersion Plan9FS::parse_protocol_version(const StringView& s) co
|
|||
return ProtocolVersion::v9P2000;
|
||||
}
|
||||
|
||||
NonnullRefPtr<Inode> Plan9FS::root_inode() const
|
||||
Inode& Plan9FS::root_inode()
|
||||
{
|
||||
return *m_root_inode;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue