Home
last modified time | relevance | path

Searched refs:lru_size (Results 1 – 2 of 2) sorted by relevance

/linux-6.12.1/samples/bpf/
Dtest_lru_dist.c92 unsigned int lru_size; member
99 static void pfect_lru_init(struct pfect_lru *lru, unsigned int lru_size, in pfect_lru_init() argument
108 lru->free_nodes = malloc(lru_size * sizeof(struct pfect_lru_node)); in pfect_lru_init()
113 lru->lru_size = lru_size; in pfect_lru_init()
138 if (lru->cur_size < lru->lru_size) { in pfect_lru_lookup_or_insert()
274 unsigned int lru_size = ((unsigned int *)data)[1]; in do_test_lru_dist() local
277 pfect_lru_init(&pfect_lru, lru_size, dist_key_counts); in do_test_lru_dist()
308 int nr_tasks, unsigned int lru_size) in test_parallel_lru_dist() argument
318 nr_cpus * lru_size); in test_parallel_lru_dist()
321 nr_tasks * lru_size); in test_parallel_lru_dist()
[all …]
/linux-6.12.1/mm/
Dmemcontrol.c1261 unsigned long *lru_size; in mem_cgroup_update_lru_size() local
1268 lru_size = &mz->lru_zone_size[zid][lru]; in mem_cgroup_update_lru_size()
1271 *lru_size += nr_pages; in mem_cgroup_update_lru_size()
1273 size = *lru_size; in mem_cgroup_update_lru_size()
1278 *lru_size = 0; in mem_cgroup_update_lru_size()
1282 *lru_size += nr_pages; in mem_cgroup_update_lru_size()