Re: [PATCH v3 2/5] mm/vmscan: move code to lru_gen_{add,del}_memcg()

From: Baolin Wang

Date: Mon Nov 23 2026 - 04:41:15 EST




On 11/16/26 4:14 PM, Max Kellermann wrote:
Preparation for the following patch that adds tail caching.

For simplicity, hlist_nulls_del_init_rcu() is now always used, which
is also valid during rotation, because the entry is immediately
reinserted under `memcg_lru.lock`.

Signed-off-by: Max Kellermann <max.kellermann@xxxxxxxxx>
---

LGTM.
Reviewed-by: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>