• Andrew Morton's avatar
    [PATCH] ext2 block allocation race fix · fb823ed3
    Andrew Morton authored
    If this CPU decides that an ext2 block group has a free block it will then go
    in and try to acquire it.  No locks are held, so another CPU can come in and
    steal the last block.
    
    In this case we will bogusly report a corrupted filessytem.
    
    Fix it by just restarting the scan - this will choose a different blockgroup
    or will generate -ENOSPC.
    fb823ed3
balloc.c 18.8 KB