Skip to content
Commit 8cc2d901 authored by Franciszek Pindel's avatar Franciszek Pindel Committed by Alberto Escolar
Browse files

fs: ext2: Fix removing indirect blocks



This commit fixes removing indirect blocks (marking them as 0)
in the inode structure. Previous version of the code was removing
the top-level blocks only when the first removed block was
one of the first 12 direct blocks. However, when the first removed
block is the first block in the referenced block list, its parent
(indirect block) should also be removed.

Signed-off-by: default avatarFranciszek Pindel <fpindel@antmicro.com>
parent 5e4bbd5c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment