cpuset: Fix incorrect memory_pressure control file mapping
authorWaiman Long <longman@redhat.com>
Thu, 24 Aug 2017 16:04:29 +0000 (12:04 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Sep 2017 06:37:15 +0000 (08:37 +0200)
commitae53897e22db8139d6ad8278599a122aba8dad7d
tree7d1b85f102a97579c1a14b38fa919b08a85bcc16
parentfd20ca80f807f828285b359ceedd8fc3754e64f2
cpuset: Fix incorrect memory_pressure control file mapping

commit 1c08c22c874ac88799cab1f78c40f46110274915 upstream.

The memory_pressure control file was incorrectly set up without
a private value (0, by default). As a result, this control
file was treated like memory_migrate on read. By adding back the
FILE_MEMORY_PRESSURE private value, the correct memory pressure value
will be returned.

Signed-off-by: Waiman Long <longman@redhat.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
Fixes: 7dbdb199d3bf ("cgroup: replace cftype->mode with CFTYPE_WORLD_WRITABLE")
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/cgroup/cpuset.c