mm: memory.numa_stat: fix file permission
Commit 406eb0c9ba
("memcg: add memory.numastat api for numa
statistics") adds memory.numa_stat file for memory cgroup. But the file
permissions are wrong.
[kamezawa@bluextal linux-2.6]$ ls -l /cgroup/memory/A/memory.numa_stat
---------- 1 root root 0 Jun 9 18:36 /cgroup/memory/A/memory.numa_stat
This patch fixes the permission as
[root@bluextal kamezawa]# ls -l /cgroup/memory/A/memory.numa_stat
-r--r--r-- 1 root root 0 Jun 10 16:49 /cgroup/memory/A/memory.numa_stat
Signed-off-by: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Acked-by: Ying Han <yinghan@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
45d16f09dd
commit
8957712710
1 changed files with 1 additions and 0 deletions
|
@ -4640,6 +4640,7 @@ static struct cftype mem_cgroup_files[] = {
|
||||||
{
|
{
|
||||||
.name = "numa_stat",
|
.name = "numa_stat",
|
||||||
.open = mem_control_numa_stat_open,
|
.open = mem_control_numa_stat_open,
|
||||||
|
.mode = S_IRUGO,
|
||||||
},
|
},
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue