mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:37:35 +00:00
Kernel: Add distinct InodeIndex type
Use the DistinctNumeric mechanism to make InodeIndex a strongly typed integer type.
This commit is contained in:
parent
c8a90a31b6
commit
e44c1792a7
17 changed files with 63 additions and 56 deletions
|
@ -55,7 +55,7 @@ private:
|
|||
|
||||
RefPtr<TmpFSInode> m_root_inode;
|
||||
|
||||
HashMap<unsigned, NonnullRefPtr<TmpFSInode>> m_inodes;
|
||||
HashMap<InodeIndex, 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