• Andrew Morton's avatar
    [PATCH] ext2: block allocation fix · 8262499b
    Andrew Morton authored
    Patch from Alex Tomas <bzzz@tmi.comex.ru>
    
    There is a logic error in ext2_new_block().  If we manage to reserve some
    blocks in the final blockgroup, local variable `bit' will be equal to
    sbi->s_groups_count and we erroneously assume that the allocation failed.
    
    Fix that up by testing local variable `group_alloc' instead.
    8262499b
balloc.c 17.9 KB