]> git.baikalelectronics.ru Git - kernel.git/commit
mm: swap: memcg: fix memcg stats for huge pages
authorShakeel Butt <shakeelb@google.com>
Wed, 3 Jun 2020 23:03:19 +0000 (16:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 4 Jun 2020 03:09:49 +0000 (20:09 -0700)
commitbfc2fc7f88685826f38252a44f27015184f3a805
tree545124044848862e471adc9967b14327f50ca779
parent96905d01769325c6b89b1a4dfbb11d8bd0744cf9
mm: swap: memcg: fix memcg stats for huge pages

The commit 71b6101c1275 ("mm: per-cgroup memory reclaim stats") added
PGLAZYFREE, PGACTIVATE & PGDEACTIVATE stats for cgroups but missed
couple of places and PGLAZYFREE missed huge page handling. Fix that.
Also for PGLAZYFREE use the irq-unsafe function to update as the irq is
already disabled.

Fixes: 71b6101c1275 ("mm: per-cgroup memory reclaim stats")
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Johannes Weiner <hannes@cmpxchg.org>
Link: http://lkml.kernel.org/r/20200527182947.251343-1-shakeelb@google.com
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swap.c