Lines Matching refs:shrinkctl
776 static unsigned long do_shrink_slab(struct shrink_control *shrinkctl, in do_shrink_slab() argument
789 freeable = shrinker->count_objects(shrinker, shrinkctl); in do_shrink_slab()
798 nr = xchg_nr_deferred(shrinker, shrinkctl); in do_shrink_slab()
817 trace_mm_shrink_slab_start(shrinker, shrinkctl, nr, in do_shrink_slab()
840 shrinkctl->nr_to_scan = nr_to_scan; in do_shrink_slab()
841 shrinkctl->nr_scanned = nr_to_scan; in do_shrink_slab()
842 ret = shrinker->scan_objects(shrinker, shrinkctl); in do_shrink_slab()
847 count_vm_events(SLABS_SCANNED, shrinkctl->nr_scanned); in do_shrink_slab()
848 total_scan -= shrinkctl->nr_scanned; in do_shrink_slab()
849 scanned += shrinkctl->nr_scanned; in do_shrink_slab()
867 new_nr = add_nr_deferred(next_deferred, shrinker, shrinkctl); in do_shrink_slab()
869 trace_mm_shrink_slab_end(shrinker, shrinkctl->nid, freed, nr, new_nr, total_scan); in do_shrink_slab()