diff options
author | Johannes Weiner <hannes@cmpxchg.org> | 2017-05-03 14:55:07 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-05-03 15:52:11 -0700 |
commit | 31176c781508e4e35b1cc4ae2f0a5abd1f4ea689 (patch) | |
tree | 0750eee8b5a8326b95b7de26212414c935b9c77d /mm/vmscan.c | |
parent | 2a2e48854d704214dac7546e87ae0e4daa0e61a0 (diff) | |
download | op-kernel-dev-31176c781508e4e35b1cc4ae2f0a5abd1f4ea689.zip op-kernel-dev-31176c781508e4e35b1cc4ae2f0a5abd1f4ea689.tar.gz |
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/20170404220148.28338-1-hannes@cmpxchg.org
Signed-off-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Vladimir Davydov <vdavydov.dev@gmail.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmscan.c')
-rw-r--r-- | mm/vmscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/vmscan.c b/mm/vmscan.c index e8cb983..fbec74a 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -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; |