mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
mm: memcontrol: clean up memory.events counting function
We only ever count single events, drop the @nr parameter. Rename the function accordingly. Remove low-information kerneldoc. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Johannes Weiner <[email protected]> Acked-by: Vladimir Davydov <[email protected]> Acked-by: Michal Hocko <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
2a2e48854d
commit
31176c7815
3 changed files with 10 additions and 18 deletions
|
|
@ -2526,7 +2526,7 @@ static bool shrink_node(pg_data_t *pgdat, struct scan_control *sc)
|
|||
sc->memcg_low_skipped = 1;
|
||||
continue;
|
||||
}
|
||||
mem_cgroup_events(memcg, MEMCG_LOW, 1);
|
||||
mem_cgroup_event(memcg, MEMCG_LOW);
|
||||
}
|
||||
|
||||
reclaimed = sc->nr_reclaimed;
|
||||
|
|
|
|||
Loading…
Reference in a new issue