]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commit
ext4: fix avefreec in find_group_orlov
authorPan Dong <pandong.peter@bytedance.com>
Tue, 25 May 2021 07:36:56 +0000 (15:36 +0800)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 2 Aug 2021 11:26:49 +0000 (13:26 +0200)
commit071ce6d3ea8d5ca4cad46c2e2df5147e21aa6580
tree083039fff3ba18726c382fba31feef7073a15c6f
parente78f7de72be73dc525a627e4b83a614574df2b88
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>
(cherry picked from commit c89849cc0259f3d33624cc3bd127685c3c0fa25d)
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
fs/ext4/ialloc.c