Re: [PATCH v3 1/2] mm/slub: introduce helpers for node partial slab state

From: Harry Yoo

Date: Sun May 31 2026 - 23:39:26 EST




On 5/29/26 12:50 PM, Hao Li wrote:
> Wrap partial slab count inc/dec and flag set/clear into
> helper functions to reduce code duplication.
>
> Note that __add_partial() is called locklessly in
> early_kmem_cache_node_alloc(), but since there is no such use case for
> removal, __remove_partial() does not exist.

nit: __remove_partial() -> clear_partial_node_state()
oh wait, it does exist. Let's drop this paragraph?

Otherwise LGTM!
Reviewed-by: Harry Yoo (Oracle) <harry@xxxxxxxxxx>

> Suggested-by: Harry Yoo <harry@xxxxxxxxxx>
> Signed-off-by: Hao Li <hao.li@xxxxxxxxx>

--
Cheers,
Harry / Hyeonggon

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature