cgroup: move cgroup_clear_directory() call out of cgroup_populate_dir()
authorTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:54 +0000 (12:09 -0700)
committerTejun Heo <tj@kernel.org>
Sun, 1 Apr 2012 19:09:54 +0000 (12:09 -0700)
cgroup_populate_dir() currently clears all files and then repopulate
the directory; however, the clearing part is only useful when it's
called from cgroup_remount().  Relocate the invocation to
cgroup_remount().

This is to prepare for further cgroup file handling updates.

Signed-off-by: Tejun Heo <tj@kernel.org>
Acked-by: Li Zefan <lizf@cn.fujitsu.com>
kernel/cgroup.c

diff --cc kernel/cgroup.c
Simple merge