Re: [PATCH v3 2/2] mm, slab: simplify returning slab in __refill_objects_node()

From: Harry Yoo

Date: Thu May 28 2026 - 04:25:41 EST



On 5/22/26 11:23 PM, Vlastimil Babka (SUSE) wrote:
When we return slabs to the partial list because we didn't fully refill
from them, we observe the min_partial limit when the returned slab is
empty, and discard it when over the limit. But it's unlikely for the
limit to be reached while we were refilling, and the worst outcome is to
have temporarily more free slabs on the list than necessary. So just
drop that code and simplify the function.

Signed-off-by: Vlastimil Babka (SUSE) <vbabka@xxxxxxxxxx>
---

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

--
Cheers,
Harry / Hyeonggon