mm/memcontrol.c:mem_cgroup_select_victim_node(): clarify comment
authorMichal Hocko <mhocko@kernel.org>
Fri, 20 May 2016 00:11:34 +0000 (17:11 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 20 May 2016 02:12:14 +0000 (19:12 -0700)
commitfda3d69be9fe7a24ad32b840cb2ed7c30b6ba1c9
tree573d6c40ed432dccaad8c8fb77ff5b2781150462
parent4ee815be1d34a6f254b3d09bdebcb27f294f2bd3
mm/memcontrol.c:mem_cgroup_select_victim_node(): clarify comment

> The comment seems to have not much to do with the code?

I guess the comment tries to say that the code path is triggered when we
charge the page which happens _before_ it is added to the LRU list and
so last_scanned_node might contain the stale data.

Cc: Johannes Weiner <hannes@cmpxchg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c