ext4: fix avefreec in find_group_orlov
authorPan Dong <pandong.peter@bytedance.com>
Tue, 25 May 2021 07:36:56 +0000 (15:36 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 23 Jun 2021 01:34:17 +0000 (21:34 -0400)
commitc89849cc0259f3d33624cc3bd127685c3c0fa25d
tree9d2112c2c9744ff9c74b812c042d42938a66b2bc
parent4fb7c70a889ead2e91e184895ac6e5354b759135
ext4: fix avefreec in find_group_orlov

The avefreec should be average free clusters instead
of average free blocks, otherwize Orlov's allocator
will not work properly when bigalloc enabled.

Cc: stable@kernel.org
Signed-off-by: Pan Dong <pandong.peter@bytedance.com>
Link: https://lore.kernel.org/r/20210525073656.31594-1-pandong.peter@bytedance.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/ialloc.c