mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 22:18:12 +00:00
Kernel: Port mounts to reference inodes directly
...instead of going through their identifiers. See the previous commit for reasoning.
This commit is contained in:
parent
df66c28479
commit
6efbbcd4ba
9 changed files with 64 additions and 45 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue