• Lukas Czerner's avatar
    ext4: try to initialize all groups we can in case of failure on ppc64 · bbdc322f
    Lukas Czerner authored
    Currently on the machines with page size > block size when initializing
    block group buddy cache we initialize it for all the block group bitmaps
    in the page. However in the case of read error, checksum error, or if
    a single bitmap is in any way corrupted we would fail to initialize all
    of the bitmaps. This is problematic because we will not have access to
    the other allocation groups even though those might be perfectly fine
    and usable.
    
    Fix this by reading all the bitmaps instead of error out on the first
    problem and simply skip the bitmaps which were either not read properly,
    or are not valid.
    Signed-off-by: default avatarLukas Czerner <lczerner@redhat.com>
    Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
    bbdc322f
mballoc.c 143 KB