• Home
  • Raw
  • Download

Lines Matching refs:memcg_lrus

49 	return !!lru->node[0].memcg_lrus;  in list_lru_memcg_aware()
60 if (nlru->memcg_lrus && idx >= 0) in list_lru_from_memcg_idx()
61 return nlru->memcg_lrus->lru[idx]; in list_lru_from_memcg_idx()
81 if (!nlru->memcg_lrus) in list_lru_from_kmem()
294 static void __memcg_destroy_list_lru_node(struct list_lru_memcg *memcg_lrus, in __memcg_destroy_list_lru_node() argument
300 kfree(memcg_lrus->lru[i]); in __memcg_destroy_list_lru_node()
303 static int __memcg_init_list_lru_node(struct list_lru_memcg *memcg_lrus, in __memcg_init_list_lru_node() argument
316 memcg_lrus->lru[i] = l; in __memcg_init_list_lru_node()
320 __memcg_destroy_list_lru_node(memcg_lrus, begin, i - 1); in __memcg_init_list_lru_node()
328 nlru->memcg_lrus = kmalloc(size * sizeof(void *), GFP_KERNEL); in memcg_init_list_lru_node()
329 if (!nlru->memcg_lrus) in memcg_init_list_lru_node()
332 if (__memcg_init_list_lru_node(nlru->memcg_lrus, 0, size)) { in memcg_init_list_lru_node()
333 kfree(nlru->memcg_lrus); in memcg_init_list_lru_node()
342 __memcg_destroy_list_lru_node(nlru->memcg_lrus, 0, memcg_nr_cache_ids); in memcg_destroy_list_lru_node()
343 kfree(nlru->memcg_lrus); in memcg_destroy_list_lru_node()
353 old = nlru->memcg_lrus; in memcg_update_list_lru_node()
373 nlru->memcg_lrus = new; in memcg_update_list_lru_node()
385 __memcg_destroy_list_lru_node(nlru->memcg_lrus, old_size, new_size); in memcg_cancel_update_list_lru_node()
402 if (!lru->node[i].memcg_lrus) in memcg_init_list_lru()
436 if (!lru->node[i].memcg_lrus) in memcg_update_list_lru()