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
commit bab24ce34c
Notes: sideshowbarker 2024-07-19 01:31:49 +09:00
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 };