mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 20:17:13 +02:00
Kernel/FileSystem: Mark ext2 inode lookup cache non-const
For the lookup cache, no method being declared const tried to modify it, so it was easy to drop the mutable declaration on the HashMap member.
This commit is contained in:
Notes:
sideshowbarker
2024-07-17 07:07:16 +09:00
Author: https://github.com/supercomputer7 Commit: https://github.com/SerenityOS/serenity/commit/843bd43c5b Pull-request: https://github.com/SerenityOS/serenity/pull/14785 Reviewed-by: https://github.com/IdanHo ✅
@@ -53,7 +53,7 @@ private:
|
||||
virtual ErrorOr<int> get_block_address(int) override;
|
||||
|
||||
ErrorOr<void> write_directory(Vector<Ext2FSDirectoryEntry>&);
|
||||
ErrorOr<void> populate_lookup_cache() const;
|
||||
ErrorOr<void> populate_lookup_cache();
|
||||
ErrorOr<void> resize(u64);
|
||||
ErrorOr<void> write_indirect_block(BlockBasedFileSystem::BlockIndex, Span<BlockBasedFileSystem::BlockIndex>);
|
||||
ErrorOr<void> grow_doubly_indirect_block(BlockBasedFileSystem::BlockIndex, size_t, Span<BlockBasedFileSystem::BlockIndex>, Vector<BlockBasedFileSystem::BlockIndex>&, unsigned&);
|
||||
@@ -71,7 +71,7 @@ private:
|
||||
Ext2FSInode(Ext2FS&, InodeIndex);
|
||||
|
||||
mutable Vector<BlockBasedFileSystem::BlockIndex> m_block_list;
|
||||
mutable HashMap<NonnullOwnPtr<KString>, InodeIndex> m_lookup_cache;
|
||||
HashMap<NonnullOwnPtr<KString>, InodeIndex> m_lookup_cache;
|
||||
ext2_inode m_raw_inode {};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user