1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:08:10 +00:00

Ext2FS: Deallocate block list meta blocks when freeing an inode

When computing the list of blocks to deallocate when freeing an inode,
we would stop collecting blocks after reaching the inode's block count.
Since we're getting rid of the inode, we need to also include the meta
blocks used by the on-disk block list itself.
This commit is contained in:
Andreas Kling 2020-11-07 16:45:03 +01:00
parent 508063ef85
commit bab24ce34c
2 changed files with 8 additions and 2 deletions

View file

@ -165,7 +165,7 @@ private:
unsigned meta_blocks { 0 };
};
BlockListShape compute_block_list_shape(unsigned blocks);
BlockListShape compute_block_list_shape(unsigned blocks) const;
unsigned m_block_group_count { 0 };