Kernel: Port mounts to reference inodes directly

...instead of going through their identifiers. See the previous commit for
reasoning.
This commit is contained in:
Sergey Bugaev 2020-06-25 00:16:24 +03:00 committed by Andreas Kling
commit 6efbbcd4ba
Notes: sideshowbarker 2024-07-19 05:23:49 +09:00
9 changed files with 64 additions and 45 deletions

View file

@ -49,7 +49,6 @@ public:
virtual bool supports_watchers() const override { return true; }
virtual NonnullRefPtr<Inode> root_inode() const override;
virtual RefPtr<Inode> get_inode(InodeIdentifier) const override;
private:
TmpFS();
@ -57,6 +56,7 @@ private:
RefPtr<TmpFSInode> m_root_inode;
HashMap<unsigned, NonnullRefPtr<TmpFSInode>> m_inodes;
RefPtr<Inode> get_inode(InodeIdentifier identifier) const;
void register_inode(TmpFSInode&);
void unregister_inode(InodeIdentifier);