Kernel/Ext2FS: Cache blocks less aggressively

With this patch, we now only cache at most 2^14 blocks, which greatly
relieves memory pressure when working with large files.
This commit is contained in:
implicitfield
2024-09-07 14:56:17 +03:00
committed by Tim Schumacher
parent 54b8fe1fa4
commit 54bfc3d294
7 changed files with 188 additions and 138 deletions

View File

@@ -104,6 +104,8 @@ ErrorOr<void> Ext2FS::initialize_while_locked()
VERIFY(logical_block_size() <= (int)max_block_size);
m_i_blocks_increment = logical_block_size() / 512;
m_block_group_count = ceil_div(super_block.s_blocks_count, super_block.s_blocks_per_group);
if (m_block_group_count == 0) {