diff options
| author | Vlastimil Babka (SUSE) <vbabka@kernel.org> | 2026-07-13 09:52:30 +0200 |
|---|---|---|
| committer | Vlastimil Babka (SUSE) <vbabka@kernel.org> | 2026-07-13 09:56:28 +0200 |
| commit | efa6a5b7bbb1bbdf304afc4a21da8ebacc2f758a (patch) | |
| tree | e99e5071501e55d5f1bd9082869cd924e6c9bed7 /scripts | |
| parent | e1fa26489025d6deac76d1dbfe2e0720a3ad84b1 (diff) | |
| download | linux-next-efa6a5b7bbb1bbdf304afc4a21da8ebacc2f758a.tar.gz linux-next-efa6a5b7bbb1bbdf304afc4a21da8ebacc2f758a.zip | |
mm/slab: simplify freeing remote objects in free_to_pcs_bulk()
We have been moving remote objects to an on-stack array and flushing it
when full. Instead, we can swap them towards the beginning of the
supplied array and bulk-free it just once.
Also add a comment to explain the rationale of freeing remote objects
last, because now it would appear to be simpler to free them first.
Reviewed-by: Pedro Falcato <pfalcato@suse.de>
Reviewed-by: Shengming Hu <hu.shengming@zte.com.cn>
Reviewed-by: Harry Yoo (Oracle) <harry@kernel.org>
Reviewed-by: Hao Li <hao.li@linux.dev>
Link: https://patch.msgid.link/20260713-bulk_free_remote-v2-1-24ee24771c2f@kernel.org
Signed-off-by: Vlastimil Babka (SUSE) <vbabka@kernel.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
