Lines Matching refs:i
293 int i; in __memcg_destroy_list_lru_node() local
295 for (i = begin; i < end; i++) in __memcg_destroy_list_lru_node()
296 kfree(memcg_lrus->lru[i]); in __memcg_destroy_list_lru_node()
302 int i; in __memcg_init_list_lru_node() local
304 for (i = begin; i < end; i++) { in __memcg_init_list_lru_node()
312 memcg_lrus->lru[i] = l; in __memcg_init_list_lru_node()
316 __memcg_destroy_list_lru_node(memcg_lrus, begin, i); in __memcg_init_list_lru_node()
386 int i; in memcg_init_list_lru() local
393 for_each_node(i) { in memcg_init_list_lru()
394 if (memcg_init_list_lru_node(&lru->node[i])) in memcg_init_list_lru()
399 for (i = i - 1; i >= 0; i--) { in memcg_init_list_lru()
400 if (!lru->node[i].memcg_lrus) in memcg_init_list_lru()
402 memcg_destroy_list_lru_node(&lru->node[i]); in memcg_init_list_lru()
409 int i; in memcg_destroy_list_lru() local
414 for_each_node(i) in memcg_destroy_list_lru()
415 memcg_destroy_list_lru_node(&lru->node[i]); in memcg_destroy_list_lru()
421 int i; in memcg_update_list_lru() local
426 for_each_node(i) { in memcg_update_list_lru()
427 if (memcg_update_list_lru_node(&lru->node[i], in memcg_update_list_lru()
433 for (i = i - 1; i >= 0; i--) { in memcg_update_list_lru()
434 if (!lru->node[i].memcg_lrus) in memcg_update_list_lru()
437 memcg_cancel_update_list_lru_node(&lru->node[i], in memcg_update_list_lru()
446 int i; in memcg_cancel_update_list_lru() local
451 for_each_node(i) in memcg_cancel_update_list_lru()
452 memcg_cancel_update_list_lru_node(&lru->node[i], in memcg_cancel_update_list_lru()
501 int i; in memcg_drain_list_lru() local
506 for_each_node(i) in memcg_drain_list_lru()
507 memcg_drain_list_lru_node(&lru->node[i], src_idx, dst_idx); in memcg_drain_list_lru()
533 int i; in __list_lru_init() local
543 for_each_node(i) { in __list_lru_init()
544 spin_lock_init(&lru->node[i].lock); in __list_lru_init()
546 lockdep_set_class(&lru->node[i].lock, key); in __list_lru_init()
547 init_one_lru(&lru->node[i].lru); in __list_lru_init()