summaryrefslogtreecommitdiff
path: root/kernel/nsproxy.c
diff options
context:
space:
mode:
authorLi Zefan <lizefan@huawei.com>2013-03-12 15:36:00 -0700
committerTejun Heo <tj@kernel.org>2013-03-12 15:36:00 -0700
commit6ee211ad0a22869af81eef10845922ac4dcb2d38 (patch)
tree7123b4fd50e0b67c7daf8d243f8b2542eea84e86 /kernel/nsproxy.c
parentd7eeac1913ff86a17f891cb4b73f03d4b94907d0 (diff)
downloadlwn-6ee211ad0a22869af81eef10845922ac4dcb2d38.tar.gz
lwn-6ee211ad0a22869af81eef10845922ac4dcb2d38.zip
cgroup: don't bother to resize pid array
When we open cgroup.procs, we'll allocate an buffer and store all tasks' tgid in it, and then duplicate entries will be stripped. If that results in a much smaller pid list, we'll re-allocate a smaller buffer. But we've already sucessfully allocated memory and reading the procs file is a short period and the memory will be freed very soon, so why bother to re-allocate memory. Signed-off-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'kernel/nsproxy.c')
0 files changed, 0 insertions, 0 deletions