Lines Matching refs:mlru
56 struct list_lru_memcg *mlru = xa_load(&lru->xa, idx); in list_lru_from_memcg_idx() local
58 return mlru ? &mlru->node[nid] : NULL; in list_lru_from_memcg_idx()
309 struct list_lru_memcg *mlru; in list_lru_walk_node() local
312 xa_for_each(&lru->xa, index, mlru) { in list_lru_walk_node()
341 struct list_lru_memcg *mlru; in memcg_init_list_lru_one() local
343 mlru = kmalloc(struct_size(mlru, node, nr_node_ids), gfp); in memcg_init_list_lru_one()
344 if (!mlru) in memcg_init_list_lru_one()
348 init_one_lru(&mlru->node[nid]); in memcg_init_list_lru_one()
350 return mlru; in memcg_init_list_lru_one()
355 struct list_lru_memcg *mlru = xa_erase_irq(&lru->xa, src_idx); in memcg_list_lru_free() local
363 if (mlru) in memcg_list_lru_free()
364 kvfree_rcu(mlru, rcu); in memcg_list_lru_free()
377 struct list_lru_memcg *mlru; in memcg_destroy_list_lru() local
383 xas_for_each(&xas, mlru, ULONG_MAX) { in memcg_destroy_list_lru()
384 kfree(mlru); in memcg_destroy_list_lru()
478 struct list_lru_memcg *mlru; in memcg_list_lru_alloc() member
501 table[i].mlru = memcg_init_list_lru_one(gfp); in memcg_list_lru_alloc()
502 if (!table[i].mlru) { in memcg_list_lru_alloc()
504 kfree(table[i].mlru); in memcg_list_lru_alloc()
513 struct list_lru_memcg *mlru = table[i].mlru; in memcg_list_lru_alloc() local
518 kfree(mlru); in memcg_list_lru_alloc()
520 xas_store(&xas, mlru); in memcg_list_lru_alloc()