]> git.baikalelectronics.ru Git - kernel.git/commit
cgroup_freezer: unnecessary test in cgroup_freezing_or_frozen()
authorTomasz Buchert <tomasz.buchert@inria.fr>
Wed, 27 Oct 2010 22:33:32 +0000 (15:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 28 Oct 2010 01:03:08 +0000 (18:03 -0700)
commit9a19968e0e245aafa05c7c6d8e84fbce9f658a65
tree142ebbc437d2d6e5c47eda6c37847eb058d2851e
parenta860b440a735a9463acfd91679172b3be114f4d9
cgroup_freezer: unnecessary test in cgroup_freezing_or_frozen()

The root freezer_state is always CGROUP_THAWED so we can remove the
special case from the code.  The test itself can be handy and is extracted
to static function.

Signed-off-by: Tomasz Buchert <tomasz.buchert@inria.fr>
Cc: Matt Helsley <matthltc@us.ibm.com>
Cc: Paul Menage <menage@google.com>
Cc: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cgroup_freezer.c