]> git.ipfire.org Git - people/ms/linux.git/commit - fs/ext4/mballoc.c
ext4: try to initialize all groups we can in case of failure on ppc64
authorLukas Czerner <lczerner@redhat.com>
Mon, 8 Jun 2015 15:38:37 +0000 (11:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 8 Jun 2015 15:38:37 +0000 (11:38 -0400)
commitbbdc322f2c600667e3d23dfadf8bbaad08f7edd3
tree8ff80ff43b805f1be02d038b4da697e8e5b1eefd
parent41e5b7ed3e9597ccc46b6affc81872e6370936d9
ext4: try to initialize all groups we can in case of failure on ppc64

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: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c