]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit454dde2259ab04702a1aae8376324d36c2afd9f8
tree573d6c40ed432dccaad8c8fb77ff5b2781150462
parent2eb3b44dd461ab69c8fc6bf30f8755f2e4e41d33
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