summaryrefslogtreecommitdiffstats
path: root/kernel/ns_cgroup.c
diff options
context:
space:
mode:
authorBen Blum2009-09-24 00:56:28 +0200
committerLinus Torvalds2009-09-24 16:20:58 +0200
commitd1d9fd3308fdef6b4bf564fa3d6cfe35b68b50bc (patch)
tree8de392166f2edb696950a90e468ef27f043be509 /kernel/ns_cgroup.c
parentcgroups: ensure correct concurrent opening/reading of pidlists across pid nam... (diff)
downloadkernel-qcow2-linux-d1d9fd3308fdef6b4bf564fa3d6cfe35b68b50bc.tar.gz
kernel-qcow2-linux-d1d9fd3308fdef6b4bf564fa3d6cfe35b68b50bc.tar.xz
kernel-qcow2-linux-d1d9fd3308fdef6b4bf564fa3d6cfe35b68b50bc.zip
cgroups: use vmalloc for large cgroups pidlist allocations
Separates all pidlist allocation requests to a separate function that judges based on the requested size whether or not the array needs to be vmalloced or can be gotten via kmalloc, and similar for kfree/vfree. Signed-off-by: Ben Blum <bblum@google.com> Signed-off-by: Paul Menage <menage@google.com> Acked-by: Li Zefan <lizf@cn.fujitsu.com> Cc: Matt Helsley <matthltc@us.ibm.com> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Cc: Oleg Nesterov <oleg@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/ns_cgroup.c')
0 files changed, 0 insertions, 0 deletions