mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-28 04:08:08 +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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user