Commit 05bdc520 authored by Miaohe Lin's avatar Miaohe Lin Committed by Linus Torvalds

mm: memcontrol: correct the comment of mem_cgroup_iter()

Since commit bbec2e15 ("mm: rename page_counter's count/limit into
usage/max"), the arg @reclaim has no priority field anymore.
Signed-off-by: default avatarMiaohe Lin <linmiaohe@huawei.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarMichal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Link: https://lkml.kernel.org/r/20200913094129.44558-1-linmiaohe@huawei.comSigned-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 19b629c9
...@@ -1102,9 +1102,9 @@ static __always_inline struct mem_cgroup *get_mem_cgroup_from_current(void) ...@@ -1102,9 +1102,9 @@ static __always_inline struct mem_cgroup *get_mem_cgroup_from_current(void)
* invocations for reference counting, or use mem_cgroup_iter_break() * invocations for reference counting, or use mem_cgroup_iter_break()
* to cancel a hierarchy walk before the round-trip is complete. * to cancel a hierarchy walk before the round-trip is complete.
* *
* Reclaimers can specify a node and a priority level in @reclaim to * Reclaimers can specify a node in @reclaim to divide up the memcgs
* divide up the memcgs in the hierarchy among all concurrent * in the hierarchy among all concurrent reclaimers operating on the
* reclaimers operating on the same node and priority. * same node.
*/ */
struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root, struct mem_cgroup *mem_cgroup_iter(struct mem_cgroup *root,
struct mem_cgroup *prev, struct mem_cgroup *prev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment