]> 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)
commitc77ec09526cbdf74dcba8b6a8b93c61181476b82
tree5a0f4f4172ee9b8f38b2940450deee9a1f7c6df9
parentc8e4248c633e8877848f7c40ceecdef08ba870f4
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: 27a6ec6fc11a ("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