]> git.baikalelectronics.ru Git - kernel.git/commit
mm/memcontrol: update lruvec counters in mem_cgroup_move_account
authorKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Sat, 19 Oct 2019 03:20:11 +0000 (20:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 19 Oct 2019 10:32:32 +0000 (06:32 -0400)
commitc81e26c26eb708e51ed5884b89856b319d846bb3
tree5a0f4f4172ee9b8f38b2940450deee9a1f7c6df9
parent2ae65925d215ea79dcc2dac7387dafa6a737eafb
mm/memcontrol: update lruvec counters in mem_cgroup_move_account

Mapped, dirty and writeback pages are also counted in per-lruvec stats.
These counters needs update when page is moved between cgroups.

Currently is nobody *consuming* the lruvec versions of these counters and
that there is no user-visible effect.

Link: http://lkml.kernel.org/r/157112699975.7360.1062614888388489788.stgit@buzz
Fixes: 569e6f853817 ("mm: memcontrol: per-lruvec stats infrastructure")
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c