Skip to content
Commit 7ad9bb65 authored by Theodore Ts'o's avatar Theodore Ts'o
Browse files

ext4: Fix initalization of s_flex_groups



The s_flex_groups array should have been initialized using atomic_add
to sum up the free counts from the block groups that make up a
flex_bg.  By using atomic_set, the value of the s_flex_groups array
was set to the values of the last block group in the flex_bg.  

The impact of this bug is that the block and inode allocation
algorithms might not pick the best flex_bg for new allocation.

Thanks to Damien Guibouret for pointing out this problem!

Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
parent 1f7bebb9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment