aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorOjaswin Mujoo <[email protected]>2023-06-09 10:34:03 +0000
committerTheodore Ts'o <[email protected]>2023-07-23 12:21:14 +0000
commit5d5460fa7932bed3a9082a6a8852cfbdb46acbe8 (patch)
tree505e88e2dd22fc21f5e7308de39d841aa7232a61 /scripts/clang-tools/gen_compile_commands.py
parentext4: correct inline offset when handling xattrs in inode body (diff)
downloadkernel-5d5460fa7932bed3a9082a6a8852cfbdb46acbe8.tar.gz
kernel-5d5460fa7932bed3a9082a6a8852cfbdb46acbe8.zip
ext4: fix off by one issue in ext4_mb_choose_next_group_best_avail()
In ext4_mb_choose_next_group_best_avail(), we want the start order to be 1 less than goal length and the min_order to be, at max, 1 more than the original length. This commit fixes an off by one issue that arose due to the fact that 1 << fls(n) > (n). After all the processing: order = 1 order below goal len min_order = maximum of the three:- - order - trim_order - 1 order below B2C(s_stripe) - 1 order above original len Cc: [email protected] Fixes: 33122aa930 ("ext4: Add allocation criteria 1.5 (CR1_5)") Signed-off-by: Ojaswin Mujoo <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions