ext4: fix wrong unit use in ext4_mb_clear_bb
authorKemeng Shi <shikemeng@huaweicloud.com>
Sat, 3 Jun 2023 15:03:18 +0000 (23:03 +0800)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 26 Jun 2023 23:34:36 +0000 (19:34 -0400)
commit247c3d214c23dfeeeb892e91a82ac1188bdaec9f
tree30c0ee9f026da9fc54181dc586eb2c9e6cdcc68a
parentad78b5efe4246e5deba8d44a6ed172b8a00d3113
ext4: fix wrong unit use in ext4_mb_clear_bb

Function ext4_issue_discard need count in cluster. Pass count_clusters
instead of count 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-11-shikemeng@huaweicloud.com
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
fs/ext4/mballoc.c