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:
Andreas Kling 2021-07-18 01:50:47 +02:00
commit 1f18558ee2
Notes: sideshowbarker 2024-07-18 08:50:43 +09:00
16 changed files with 20 additions and 21 deletions

View file

@ -25,7 +25,7 @@ public:
virtual bool initialize() override;
virtual StringView class_name() const override { return "DevPtsFS"sv; }
virtual NonnullRefPtr<Inode> root_inode() const override;
virtual Inode& root_inode() override;
static void register_slave_pty(SlavePTY&);
static void unregister_slave_pty(SlavePTY&);