summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2024-08-20 16:22:30 +0300
committerTheodore Ts'o <tytso@mit.edu>2024-09-04 05:12:15 +0300
commitbb0a12c3439b10d88412fd3102df5b9a6e3cd6dc (patch)
treef54c94fd3806c26b688e48c16f5e3829076b921c /tools/perf/scripts/python/export-to-sqlite.py
parent227d31b9214d1b9513383cf6c7180628d4b3b61f (diff)
downloadlinux-bb0a12c3439b10d88412fd3102df5b9a6e3cd6dc.tar.xz
ext4: avoid negative min_clusters in find_group_orlov()
min_clusters is signed integer and will be converted to unsigned integer when compared with unsigned number stats.free_clusters. If min_clusters is negative, it will be converted to a huge unsigned value in which case all groups may not meet the actual desired free clusters. Set negative min_clusters to 0 to avoid unexpected behavior. Fixes: ac27a0ec112a ("[PATCH] ext4: initial copy of files from ext3") Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Link: https://patch.msgid.link/20240820132234.2759926-4-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions