Files
android_kernel_xiaomi_sm8450/fs/ext4
Jan Kara d9b22cf9f5 ext4: fix stripe-unaligned allocations
When a filesystem is created using:

	mkfs.ext4 -b 4096 -E stride=512 <dev>

and we try to allocate 64MB extent, we will end up directly in
ext4_mb_complex_scan_group(). This is because the request is detected
as power-of-two allocation (so we start in ext4_mb_regular_allocator()
with ac_criteria == 0) however the check before
ext4_mb_simple_scan_group() refuses the direct buddy scan because the
allocation request is too large. Since cr == 0, the check whether we
should use ext4_mb_scan_aligned() fails as well and we fall back to
ext4_mb_complex_scan_group().

Fix the problem by checking for upper limit on power-of-two requests
directly when detecting them.

Reported-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-02-10 00:50:56 -05:00
..
2015-04-02 23:47:42 -04:00
2016-09-30 02:14:56 -04:00
2017-02-05 19:47:14 -05:00
2017-02-08 14:39:27 -05:00
2017-02-02 11:52:14 -05:00
2016-05-13 00:44:16 -04:00
2017-02-05 19:47:14 -05:00
2016-11-22 23:21:58 -05:00
2016-03-09 23:49:05 -05:00
2016-11-01 09:43:26 -06:00
2017-02-05 19:47:14 -05:00