diff options
author | Li Zefan <[email protected]> | 2013-03-12 15:36:00 -0700 |
---|---|---|
committer | Tejun Heo <[email protected]> | 2013-03-12 15:36:00 -0700 |
commit | 6ee211ad0a22869af81eef10845922ac4dcb2d38 (patch) | |
tree | 7123b4fd50e0b67c7daf8d243f8b2542eea84e86 /lib/debugobjects.c | |
parent | d7eeac1913ff86a17f891cb4b73f03d4b94907d0 (diff) |
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 <[email protected]>
Signed-off-by: Tejun Heo <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions