aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorKemeng Shi <shikemeng@huaweicloud.com>2023-03-04 01:21:01 +0800
committerTheodore Ts'o <tytso@mit.edu>2023-04-06 01:13:03 -0400
commitb07ffe6927c75d99af534d685282ea188d9f71a6 (patch)
tree5b18d8c8b296689625ceed3c701ea1e2dbdfe5f7 /tools/perf/scripts/python/bin
parentext4: remove unused group parameter in ext4_block_bitmap_csum_set (diff)
downloadlinux-b07ffe6927c75d99af534d685282ea188d9f71a6.tar.gz
linux-b07ffe6927c75d99af534d685282ea188d9f71a6.zip
ext4: set goal start correctly in ext4_mb_normalize_request
We need to set ac_g_ex to notify the goal start used in ext4_mb_find_by_goal. Set ac_g_ex instead of ac_f_ex in ext4_mb_normalize_request. Besides we should assure goal start is in range [first_data_block, blocks_count) as ext4_mb_initialize_context does. [ Added a check to make sure size is less than ar->pright; otherwise we could end up passing an underflowed value of ar->pright - size to ext4_get_group_no_and_offset(), which will trigger a BUG_ON later on. - TYT ] Signed-off-by: Kemeng Shi <shikemeng@huaweicloud.com> Reviewed-by: Ritesh Harjani (IBM) <ritesh.list@gmail.com> Link: https://lore.kernel.org/r/20230303172120.3800725-2-shikemeng@huaweicloud.com Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions