mirror of
https://github.com/SerenityOS/serenity
synced 2026-05-11 09:26:28 +02:00
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:
committed by
Tim Schumacher
parent
54b8fe1fa4
commit
54bfc3d294
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user