summaryrefslogtreecommitdiffstats
path: root/mm/vmalloc.c
diff options
context:
space:
mode:
authorChris Down2019-03-06 00:45:55 +0100
committerLinus Torvalds2019-03-06 06:07:17 +0100
commit677dc9731b54dccaaadbdcea18f8eecc95cee832 (patch)
tree21784f11d6078f396b4c79b0b4221ae5f23b0555 /mm/vmalloc.c
parentmm, memcg: create mem_cgroup_from_seq (diff)
downloadkernel-qcow2-linux-677dc9731b54dccaaadbdcea18f8eecc95cee832.tar.gz
kernel-qcow2-linux-677dc9731b54dccaaadbdcea18f8eecc95cee832.tar.xz
kernel-qcow2-linux-677dc9731b54dccaaadbdcea18f8eecc95cee832.zip
mm, memcg: extract memcg maxable seq_file logic to seq_show_memcg_tunable
memcg has a significant number of files exposed to kernfs where their value is either exposed directly or is "max" in the case of PAGE_COUNTER_MAX. This patch makes this generic by providing a single function to do this work. In combination with the previous patch adding mem_cgroup_from_seq, this makes all of the seq_show feeder functions significantly more simple. Link: http://lkml.kernel.org/r/20190124194100.GA31425@chrisdown.name Signed-off-by: Chris Down <chris@chrisdown.name> Acked-by: Johannes Weiner <hannes@cmpxchg.org> Acked-by: Michal Hocko <mhocko@suse.com> Cc: Tejun Heo <tj@kernel.org> Cc: Roman Gushchin <guro@fb.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/vmalloc.c')
0 files changed, 0 insertions, 0 deletions