Thread (6 messages) 6 messages, 6 authors, 2021-02-06

Re: [PATCH v2] mm: memcontrol: replace the loop with a list_for_each_entry()

From: Shakeel Butt <hidden>
Date: 2021-02-06 04:11:19
Also in: cgroups, lkml

On Thu, Feb 4, 2021 at 8:39 AM Muchun Song [off-list ref] wrote:
The rule of list walk has gone since:

 commit a9d5adeeb4b2 ("mm/memcontrol: allow to uncharge page without using page->lru field")

So remove the strange comment and replace the loop with a
list_for_each_entry().

There is only one caller of the uncharge_list(). So just fold it into
mem_cgroup_uncharge_list() and remove it.

Signed-off-by: Muchun Song <redacted>
Reviewed-by: Shakeel Butt <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help