ext4: fix wrong unit use in ext4_mb_new_blocks
authorKemeng Shi <shikemeng@huaweicloud.com>
Sat, 3 Jun 2023 15:03:19 +0000 (23:03 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Jun 2023 23:34:48 +0000 (19:34 -0400)
commit2ec6d0a5ea72689a79e6f725fd8b443a788ae279
tree8ef20a25eefa31d251730d276e8d0a1bdcb9f533
parent247c3d214c23dfeeeb892e91a82ac1188bdaec9f
ext4: fix wrong unit use in ext4_mb_new_blocks

Function ext4_free_blocks_simple needs count in cluster. Function
ext4_free_blocks accepts count in block. Convert count to cluster
to fix the mismatch.

Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com>
Cc: stable@kernel.org
Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com>
Link: https://lore.kernel.org/r/20230603150327.3596033-12-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c