Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 7 of 7) sorted by relevance

/mm/
Dvmscan.c155 static bool global_reclaim(struct scan_control *sc) in global_reclaim() argument
157 return !sc->target_mem_cgroup; in global_reclaim()
173 static bool sane_reclaim(struct scan_control *sc) in sane_reclaim() argument
175 struct mem_cgroup *memcg = sc->target_mem_cgroup; in sane_reclaim()
186 static bool global_reclaim(struct scan_control *sc) in global_reclaim() argument
191 static bool sane_reclaim(struct scan_control *sc) in sane_reclaim() argument
483 struct shrink_control sc = { in shrink_slab() local
499 sc.nid = 0; in shrink_slab()
501 freed += do_shrink_slab(&sc, shrinker, nr_scanned, nr_eligible); in shrink_slab()
543 static int may_write_to_inode(struct inode *inode, struct scan_control *sc) in may_write_to_inode() argument
[all …]
Dswap_cgroup.c70 struct swap_cgroup *sc; in lookup_swap_cgroup() local
77 sc = page_address(mappage); in lookup_swap_cgroup()
78 return sc + offset % SC_PER_PAGE; in lookup_swap_cgroup()
94 struct swap_cgroup *sc; in swap_cgroup_cmpxchg() local
98 sc = lookup_swap_cgroup(ent, &ctrl); in swap_cgroup_cmpxchg()
101 retval = sc->id; in swap_cgroup_cmpxchg()
103 sc->id = new; in swap_cgroup_cmpxchg()
121 struct swap_cgroup *sc; in swap_cgroup_record() local
125 sc = lookup_swap_cgroup(ent, &ctrl); in swap_cgroup_record()
128 old = sc->id; in swap_cgroup_record()
[all …]
Dworkingset.c340 struct shrink_control *sc) in count_shadow_nodes() argument
348 shadow_nodes = list_lru_shrink_count(&workingset_shadow_nodes, sc); in count_shadow_nodes()
351 if (sc->memcg) { in count_shadow_nodes()
352 pages = mem_cgroup_node_nr_lru_pages(sc->memcg, sc->nid, in count_shadow_nodes()
355 pages = node_page_state(NODE_DATA(sc->nid), NR_ACTIVE_FILE) + in count_shadow_nodes()
356 node_page_state(NODE_DATA(sc->nid), NR_INACTIVE_FILE); in count_shadow_nodes()
449 struct shrink_control *sc) in scan_shadow_nodes() argument
455 ret = list_lru_shrink_walk(&workingset_shadow_nodes, sc, in scan_shadow_nodes()
Dmemory-failure.c774 #define sc (1UL << PG_swapcache) macro
805 { sc|dirty, sc|dirty, MF_MSG_DIRTY_SWAPCACHE, me_swapcache_dirty },
806 { sc|dirty, sc, MF_MSG_CLEAN_SWAPCACHE, me_swapcache_clean },
824 #undef sc
Dhuge_memory.c119 struct shrink_control *sc) in shrink_huge_zero_page_count() argument
126 struct shrink_control *sc) in shrink_huge_zero_page_scan() argument
2248 struct shrink_control *sc) in deferred_split_count() argument
2250 struct pglist_data *pgdata = NODE_DATA(sc->nid); in deferred_split_count()
2255 struct shrink_control *sc) in deferred_split_scan() argument
2257 struct pglist_data *pgdata = NODE_DATA(sc->nid); in deferred_split_scan()
2275 if (!--sc->nr_to_scan) in deferred_split_scan()
Dshmem.c414 struct shrink_control *sc, unsigned long nr_to_split) in shmem_unused_huge_shrink() argument
421 unsigned long batch = sc ? sc->nr_to_scan : 128; in shmem_unused_huge_shrink()
520 struct shrink_control *sc) in shmem_unused_huge_scan() argument
527 return shmem_unused_huge_shrink(sbinfo, sc, 0); in shmem_unused_huge_scan()
531 struct shrink_control *sc) in shmem_unused_huge_count() argument
541 struct shrink_control *sc, unsigned long nr_to_split) in shmem_unused_huge_shrink() argument
Dzsmalloc.c2333 struct shrink_control *sc) in zs_shrinker_scan() argument
2351 struct shrink_control *sc) in zs_shrinker_count() argument