OSDN Git Service

cpuset: fix the return value of cpuset_write_u64()
authorLi Zefan <lizefan@huawei.com>
Tue, 13 Aug 2013 02:05:59 +0000 (10:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 20 Aug 2013 15:43:05 +0000 (08:43 -0700)
commit9fa6018620ff121a3d892394021d4285636b7cd5
tree31b7a35aa9d76b72aeeb4ed841a9d2986b6e7b5a
parent94aa327e13898c4c495a27303ce96cc52280fb25
cpuset: fix the return value of cpuset_write_u64()

commit a903f0865a190f8778c73df1a810ea6e25e5d7cf upstream.

Writing to this file always returns -ENODEV:

  # echo 1 > cpuset.memory_pressure_enabled
  -bash: echo: write error: No such device

Signed-off-by: Li Zefan <lizefan@huawei.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/cpuset.c