summary refs log tree commit diff
path: root/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-08-29 11:16:21 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2017-08-29 11:16:21 -0700
commit36fde05f3fb51edea879636db590d70e11f16c82 (patch)
treec7c707541f7ebcd0acf77faf9c8d6995dfd8be18 /kernel
parent31a3faf3229697d646eab0fc942b24d73b0bcfa1 (diff)
parent1c08c22c874ac88799cab1f78c40f46110274915 (diff)
downloadlinux-36fde05f3fb51edea879636db590d70e11f16c82.tar.gz
Merge branch 'for-4.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup
Pull cgroup fix from Tejun Heo:
 "A late but obvious fix for cgroup.

  I broke the 'cpuset.memory_pressure' file a long time ago (v4.4) by
  accidentally deleting its file index, which made it a duplicate of the
  'cpuset.memory_migrate' file. Spotted and fixed by Waiman"

* 'for-4.13-fixes' of git://git.kernel.org/pub/scm/linux/kernel/git/tj/cgroup:
  cpuset: Fix incorrect memory_pressure control file mapping
Diffstat (limited to 'kernel')
-rw-r--r--kernel/cgroup/cpuset.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/cgroup/cpuset.c b/kernel/cgroup/cpuset.c
index 8d5151688504..87a1213dd326 100644
--- a/kernel/cgroup/cpuset.c
+++ b/kernel/cgroup/cpuset.c
@@ -1892,6 +1892,7 @@ static struct cftype files[] = {
 	{
 		.name = "memory_pressure",
 		.read_u64 = cpuset_read_u64,
+		.private = FILE_MEMORY_PRESSURE,
 	},
 
 	{