summaryrefslogtreecommitdiffstats
path: root/mm/slub.c
diff options
context:
space:
mode:
authorVladimir Davydov2016-03-17 22:17:32 +0100
committerLinus Torvalds2016-03-17 23:09:34 +0100
commit72b54e7314a2e7a68567c92bbb32fe2598a3c783 (patch)
tree3ab699bd18fc1c3b27224620b21a3800ed567402 /mm/slub.c
parentmm: memcontrol: do not bypass slab charge if memcg is offline (diff)
downloadkernel-qcow2-linux-72b54e7314a2e7a68567c92bbb32fe2598a3c783.tar.gz
kernel-qcow2-linux-72b54e7314a2e7a68567c92bbb32fe2598a3c783.tar.xz
kernel-qcow2-linux-72b54e7314a2e7a68567c92bbb32fe2598a3c783.zip
mm: memcontrol: make tree_{stat,events} fetch all stats
Currently, tree_{stat,events} helpers can only get one stat index at a time, so when there are a lot of stats to be reported one has to call it over and over again (see memory_stat_show). This is neither effective, nor does it look good. Instead, let's make these helpers take a snapshot of all available counters. Signed-off-by: Vladimir Davydov <vdavydov@virtuozzo.com> Cc: Johannes Weiner <hannes@cmpxchg.org> Cc: Michal Hocko <mhocko@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slub.c')
0 files changed, 0 insertions, 0 deletions