]> git.baikalelectronics.ru Git - kernel.git/commit
cpuset: remove unneeded NODEMASK_ALLOC() in cpuset_attach()
authorLi Zefan <lizf@cn.fujitsu.com>
Wed, 23 Mar 2011 23:42:46 +0000 (16:42 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 24 Mar 2011 02:46:34 +0000 (19:46 -0700)
commitfb5618928269ddf5e0de154775024e923f77425c
tree55a363ed73b91d8350d2df7083abf49c5c97b20d
parenteac1350f0d166885456e3eca389ec46b7e6b0514
cpuset: remove unneeded NODEMASK_ALLOC() in cpuset_attach()

oldcs->mems_allowed is not modified during cpuset_attach(), so we don't
have to copy it to a buffer allocated by NODEMASK_ALLOC().  Just pass it
to cpuset_migrate_mm().

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Cc: Paul Menage <menage@google.com>
Acked-by: David Rientjes <rientjes@google.com>
Cc: Miao Xie <miaox@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/cpuset.c