--- x/mm/list_lru.c +++ y/mm/list_lru.c @@ -94,6 +94,8 @@ bool list_lru_add(struct list_lru *lru, spin_lock(&nlru->lock); if (list_empty(item)) { l = list_lru_from_memcg_idx(lru, nid, memcg_kmem_id(memcg)); + if (NULL == l) + l = &lru->node[nid].lru; list_add_tail(item, &l->list); /* Set shrinker bit if the first element was added */ if (!l->nr_items++)