Kernel: Make BlockBasedFS::BlockIndex a distinct integer type

This commit is contained in:
Andreas Kling 2021-02-12 11:59:27 +01:00
commit 489317e573
Notes: sideshowbarker 2024-07-18 22:24:35 +09:00
4 changed files with 72 additions and 70 deletions

View file

@ -87,7 +87,7 @@ private:
const Ext2FS& fs() const;
Ext2FSInode(Ext2FS&, InodeIndex);
mutable Vector<unsigned> m_block_list;
mutable Vector<BlockBasedFS::BlockIndex> m_block_list;
mutable HashMap<String, InodeIndex> m_lookup_cache;
ext2_inode m_raw_inode;
};
@ -113,7 +113,6 @@ public:
virtual u8 internal_file_type_to_directory_entry_type(const DirectoryEntryView& entry) const override;
private:
typedef unsigned BlockIndex;
typedef unsigned GroupIndex;
explicit Ext2FS(FileDescription&);