]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
slab: use new API for remaining command line parameters
authorPetr Tesarik <ptesarik@suse.com>
Fri, 24 Oct 2025 17:06:54 +0000 (19:06 +0200)
committerVlastimil Babka <vbabka@suse.cz>
Thu, 30 Oct 2025 13:35:20 +0000 (14:35 +0100)
commit8ad018dbd344c0cdc5f31c4fab56593f85eede02
tree3bd52da07c99a25a5cd33d83db540e70e6c68098
parentaed760df8e8ebc2035561e53bef184e6a8240610
slab: use new API for remaining command line parameters

Use core_param() and __core_param_cb() instead of __setup() or
__setup_param() to improve syntax checking and error messages.

Replace get_option() with kstrtouint(), because:
* the latter accepts a pointer to const char,
* these parameters should not accept ranges,
* error value can be passed directly to parser.

There is one more change apart from the parsing of numeric parameters:
slab_strict_numa parameter name must match exactly. Before this patch the
kernel would silently accept any option that starts with the name as an
undocumented alias.

Signed-off-by: Petr Tesarik <ptesarik@suse.com>
Link: https://patch.msgid.link/6ae7e0ddc72b7619203c07dd5103a598e12f713b.1761324765.git.ptesarik@suse.com
Reviewed-by: Harry Yoo <harry.yoo@oracle.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
mm/slub.c