From: Li Zefan Date: Tue, 12 Mar 2013 22:36:00 +0000 (-0700) Subject: cgroup: don't bother to resize pid array X-Git-Tag: omap-for-v3.10/dt-fixes-for-merge-window~124^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ee211ad0a22869af81eef10845922ac4dcb2d38;p=pandora-kernel.git 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 Signed-off-by: Tejun Heo --- Reading git-diff-tree failed