Lines Matching refs:node
118 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_add()
142 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_del()
177 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_count_one()
194 nlru = &lru->node[nid]; in list_lru_count_node()
262 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_walk_one()
278 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_walk_one_irq()
299 struct list_lru_node *nlru = &lru->node[nid]; in list_lru_walk_node()
448 if (memcg_init_list_lru_node(&lru->node[i])) in memcg_init_list_lru()
454 if (!lru->node[i].memcg_lrus) in memcg_init_list_lru()
456 memcg_destroy_list_lru_node(&lru->node[i]); in memcg_init_list_lru()
469 memcg_destroy_list_lru_node(&lru->node[i]); in memcg_destroy_list_lru()
481 if (memcg_update_list_lru_node(&lru->node[i], in memcg_update_list_lru()
488 if (!lru->node[i].memcg_lrus) in memcg_update_list_lru()
491 memcg_cancel_update_list_lru_node(&lru->node[i], in memcg_update_list_lru()
506 memcg_cancel_update_list_lru_node(&lru->node[i], in memcg_cancel_update_list_lru()
534 struct list_lru_node *nlru = &lru->node[nid]; in memcg_drain_list_lru_node()
604 lru->node = kcalloc(nr_node_ids, sizeof(*lru->node), GFP_KERNEL); in __list_lru_init()
605 if (!lru->node) in __list_lru_init()
609 spin_lock_init(&lru->node[i].lock); in __list_lru_init()
611 lockdep_set_class(&lru->node[i].lock, key); in __list_lru_init()
612 init_one_lru(&lru->node[i].lru); in __list_lru_init()
617 kfree(lru->node); in __list_lru_init()
619 lru->node = NULL; in __list_lru_init()
633 if (!lru->node) in list_lru_destroy()
641 kfree(lru->node); in list_lru_destroy()
642 lru->node = NULL; in list_lru_destroy()