Searched refs:sc (Results 1 – 7 of 7) sorted by relevance
/mm/ |
D | vmscan.c | 242 static bool global_reclaim(struct scan_control *sc) in global_reclaim() argument 244 return !sc->target_mem_cgroup; in global_reclaim() 260 static bool sane_reclaim(struct scan_control *sc) in sane_reclaim() argument 262 struct mem_cgroup *memcg = sc->target_mem_cgroup; in sane_reclaim() 305 static bool global_reclaim(struct scan_control *sc) in global_reclaim() argument 310 static bool sane_reclaim(struct scan_control *sc) in sane_reclaim() argument 612 struct shrink_control sc = { in shrink_slab_memcg() local 631 ret = do_shrink_slab(&sc, shrinker, priority); in shrink_slab_memcg() 650 ret = do_shrink_slab(&sc, shrinker, priority); in shrink_slab_memcg() 716 struct shrink_control sc = { in shrink_slab() local [all …]
|
D | swap_cgroup.c | 69 struct swap_cgroup *sc; in __lookup_swap_cgroup() local 72 sc = page_address(mappage); in __lookup_swap_cgroup() 73 return sc + offset % SC_PER_PAGE; in __lookup_swap_cgroup() 101 struct swap_cgroup *sc; in swap_cgroup_cmpxchg() local 105 sc = lookup_swap_cgroup(ent, &ctrl); in swap_cgroup_cmpxchg() 108 retval = sc->id; in swap_cgroup_cmpxchg() 110 sc->id = new; in swap_cgroup_cmpxchg() 130 struct swap_cgroup *sc; in swap_cgroup_record() local 136 sc = lookup_swap_cgroup(ent, &ctrl); in swap_cgroup_record() 139 old = sc->id; in swap_cgroup_record() [all …]
|
D | workingset.c | 394 struct shrink_control *sc) in count_shadow_nodes() argument 400 nodes = list_lru_shrink_count(&shadow_nodes, sc); in count_shadow_nodes() 425 if (sc->memcg) { in count_shadow_nodes() 429 lruvec = mem_cgroup_lruvec(NODE_DATA(sc->nid), sc->memcg); in count_shadow_nodes() 437 pages = node_present_pages(sc->nid); in count_shadow_nodes() 516 struct shrink_control *sc) in scan_shadow_nodes() argument 519 return list_lru_shrink_walk_irq(&shadow_nodes, sc, shadow_lru_isolate, in scan_shadow_nodes()
|
D | memory-failure.c | 826 #define sc ((1UL << PG_swapcache) | (1UL << PG_swapbacked)) macro 856 { sc|dirty, sc|dirty, MF_MSG_DIRTY_SWAPCACHE, me_swapcache_dirty }, 857 { sc|dirty, sc, MF_MSG_CLEAN_SWAPCACHE, me_swapcache_clean }, 875 #undef sc
|
D | huge_memory.c | 137 struct shrink_control *sc) in shrink_huge_zero_page_count() argument 144 struct shrink_control *sc) in shrink_huge_zero_page_scan() argument 2898 struct shrink_control *sc) in deferred_split_count() argument 2900 struct pglist_data *pgdata = NODE_DATA(sc->nid); in deferred_split_count() 2904 if (sc->memcg) in deferred_split_count() 2905 ds_queue = &sc->memcg->deferred_split_queue; in deferred_split_count() 2911 struct shrink_control *sc) in deferred_split_scan() argument 2913 struct pglist_data *pgdata = NODE_DATA(sc->nid); in deferred_split_scan() 2921 if (sc->memcg) in deferred_split_scan() 2922 ds_queue = &sc->memcg->deferred_split_queue; in deferred_split_scan() [all …]
|
D | shmem.c | 461 struct shrink_control *sc, unsigned long nr_to_split) in shmem_unused_huge_shrink() argument 468 unsigned long batch = sc ? sc->nr_to_scan : 128; in shmem_unused_huge_shrink() 567 struct shrink_control *sc) in shmem_unused_huge_scan() argument 574 return shmem_unused_huge_shrink(sbinfo, sc, 0); in shmem_unused_huge_scan() 578 struct shrink_control *sc) in shmem_unused_huge_count() argument 588 struct shrink_control *sc, unsigned long nr_to_split) in shmem_unused_huge_shrink() argument
|
D | zsmalloc.c | 2337 struct shrink_control *sc) in zs_shrinker_scan() argument 2355 struct shrink_control *sc) in zs_shrinker_count() argument
|