mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:07:46 +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
|
@ -33,7 +33,7 @@ public:
|
|||
|
||||
virtual bool initialize() = 0;
|
||||
virtual StringView class_name() const = 0;
|
||||
virtual NonnullRefPtr<Inode> root_inode() const = 0;
|
||||
virtual Inode& root_inode() = 0;
|
||||
virtual bool supports_watchers() const { return false; }
|
||||
|
||||
bool is_readonly() const { return m_readonly; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue