1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 11:55:12 +00:00

Ext2FS: Avoid a kmallocation every time we fetch an inode from disk.

This commit is contained in:
Andreas Kling 2019-02-03 04:05:30 +01:00
parent db2422d0d3
commit 3a9c01619f
2 changed files with 4 additions and 11 deletions

View file

@ -47,7 +47,7 @@ private:
Ext2FS& fs();
const Ext2FS& fs() const;
Ext2FSInode(Ext2FS&, unsigned index, const ext2_inode&);
Ext2FSInode(Ext2FS&, unsigned index);
mutable Vector<unsigned> m_block_list;
mutable HashMap<String, unsigned> m_lookup_cache;