summaryrefslogtreecommitdiff
path: root/drivers/pnp
diff options
context:
space:
mode:
authorVlastimil Babka <vbabka@suse.cz>2022-11-21 16:06:38 +0100
committerVlastimil Babka <vbabka@suse.cz>2022-11-27 23:43:53 +0100
commitfa9b88e459d710cadf3b01e8a64eda00cc91cdd6 (patch)
tree892d060b95e525fd013932b901b0c62fe04dd9a5 /drivers/pnp
parent3d97d976e5d58554570003ca5297a67142ae4e29 (diff)
downloadlwn-fa9b88e459d710cadf3b01e8a64eda00cc91cdd6.tar.gz
lwn-fa9b88e459d710cadf3b01e8a64eda00cc91cdd6.zip
mm, slub: refactor free debug processing
Since commit c7323a5ad078 ("mm/slub: restrict sysfs validation to debug caches and make it safe"), caches with debugging enabled use the free_debug_processing() function to do both freeing checks and actual freeing to partial list under list_lock, bypassing the fast paths. We will want to use the same path for CONFIG_SLUB_TINY, but without the debugging checks, so refactor the code so that free_debug_processing() does only the checks, while the freeing is handled by a new function free_to_partial_list(). For consistency, change return parameter alloc_debug_processing() from int to bool and correct the !SLUB_DEBUG variant to return true and not false. This didn't matter until now, but will in the following changes. Signed-off-by: Vlastimil Babka <vbabka@suse.cz> Acked-by: Mike Rapoport <rppt@linux.ibm.com> Reviewed-by: Christoph Lameter <cl@linux.com> Reviewed-by: Hyeonggon Yoo <42.hyeyoo@gmail.com>
Diffstat (limited to 'drivers/pnp')
0 files changed, 0 insertions, 0 deletions