aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorFeng Tang <[email protected]>2023-09-20 15:44:13 +0800
committerVlastimil Babka <[email protected]>2023-10-02 11:54:32 +0200
commite519ce7a26b4c877d834e4234e8d24478448c0d3 (patch)
tree552610af91b780033e9e0094f2edc5d37efaf1e8 /scripts/generate_rust_analyzer.py
parent8a749fd1a8720d4619c91c8b6e7528c0a355c0aa (diff)
mm/slub: add sanity check for slub_min/max_order cmdline setup
Currently there are 2 parameters could be setup from kernel cmdline: slub_min_order and slub_max_order. It's possible that the user configured slub_min_order is bigger than the default slub_max_order [1], which can still take effect, as calculate_oder() will use MAX_ORDER as a fallback to check against, but has some downsides: * the kernel message about SLUB will be strange in showing min/max orders: SLUB: HWalign=64, Order=9-3, MinObjects=0, CPUs=16, Nodes=1 * in calculate_order() called by each slab, the 2 loops of calc_slab_order() will all be meaningless due to slub_min_order is bigger than slub_max_order * prevent future code cleanup like in [2]. Fix it by adding some sanity check to enforce the min/max semantics. [1]. https://lore.kernel.org/lkml/[email protected]/ [2]. https://lore.kernel.org/lkml/[email protected]/ Signed-off-by: Feng Tang <[email protected]> Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions