aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorBaokun Li <[email protected]>2023-10-23 09:30:57 +0800
committerTheodore Ts'o <[email protected]>2023-12-14 10:54:47 -0500
commit665d3e0af4d35acf9a5f58dfd471bc27dbf55880 (patch)
tree15dafab5d2e7a4307b1d5c489c9dd04945c250a9 /lib/test_fortify/write_overflow-strncpy-src.c
parent5d1935ac02ca5aee364a449a35e2977ea84509b0 (diff)
ext4: reduce unnecessary memory allocation in alloc_flex_gd()
When a large flex_bg file system is resized, the number of groups to be added may be small, and a large amount of memory that will not be used will be allocated. Therefore, resize_bg can be set to the size after the number of new_group_data to be used is aligned upwards to the power of 2. This does not affect the disk layout after online resize and saves some memory. Signed-off-by: Baokun Li <[email protected]> Reviewed-by: Jan Kara <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Theodore Ts'o <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions