projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4eb9198
)
memcg: fix memcg_size() calculation
author
Vladimir Davydov
<
[email protected]
>
Thu, 2 Jan 2014 20:58:47 +0000
(12:58 -0800)
committer
Linus Torvalds
<
[email protected]
>
Thu, 2 Jan 2014 22:40:30 +0000
(14:40 -0800)
The mem_cgroup structure contains nr_node_ids pointers to
mem_cgroup_per_node objects, not the objects themselves.
Signed-off-by: Vladimir Davydov <
[email protected]
>
Acked-by: Michal Hocko <
[email protected]
>
Cc: Glauber Costa <
[email protected]
>
Cc: Johannes Weiner <
[email protected]
>
Cc: Balbir Singh <
[email protected]
>
Cc: KAMEZAWA Hiroyuki <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/memcontrol.c
patch
|
blob
|
history
diff --git
a/mm/memcontrol.c
b/mm/memcontrol.c
index bf5e8945714944f896e2dc79b33b75a491da4794..7f1a356153c013349ce520c7763002838c02fb76 100644
(file)
--- a/
mm/memcontrol.c
+++ b/
mm/memcontrol.c
@@
-338,7
+338,7
@@
struct mem_cgroup {
static size_t memcg_size(void)
{
return sizeof(struct mem_cgroup) +
- nr_node_ids * sizeof(struct mem_cgroup_per_node);
+ nr_node_ids * sizeof(struct mem_cgroup_per_node
*
);
}
/* internal only representation about the status of kmem accounting. */