summaryrefslogtreecommitdiffstats
path: root/arch/nds32/mm
diff options
context:
space:
mode:
authorShakeel Butt <shakeelb@google.com>2020-12-14 19:07:14 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2020-12-15 12:13:40 -0800
commitc47d5032ed3002311a4188eae51f4641ec436beb (patch)
tree290cbe84b7f32865300396ccc9b1a9eebfdb089e /arch/nds32/mm
parent7f41506baa052c95f9a72e17472f3dfceba2a10b (diff)
downloadlinux-stable-c47d5032ed3002311a4188eae51f4641ec436beb.tar.gz
linux-stable-c47d5032ed3002311a4188eae51f4641ec436beb.tar.bz2
linux-stable-c47d5032ed3002311a4188eae51f4641ec436beb.zip
mm: move lruvec stats update functions to vmstat.h
Patch series "memcg: add pagetable comsumption to memory.stat", v2. Many workloads consumes significant amount of memory in pagetables. One specific use-case is the user space network driver which mmaps the application memory to provide zero copy transfer. This driver can consume a large amount memory in page tables. This patch series exposes the pagetable comsumption for each memory cgroup. This patch (of 2): This does not change any functionality and only move the functions which update the lruvec stats to vmstat.h from memcontrol.h. The main reason for this patch is to be able to use these functions in the page table contructor function which is defined in mm.h and we can not include the memcontrol.h in that file. Also this is a better place for this interface in general. The lruvec abstraction, while invented for memcg, isn't specific to memcg at all. Link: https://lkml.kernel.org/r/20201130212541.2781790-2-shakeelb@google.com Signed-off-by: Shakeel Butt <shakeelb@google.com> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Roman Gushchin <guro@fb.com> Cc: Michal Hocko <mhocko@suse.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/nds32/mm')
0 files changed, 0 insertions, 0 deletions