+ memcg-use-css_get-put-when-charging-uncharging-kmem-fix-fix.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + memcg-use-css_get-put-when-charging-uncharging-kmem-fix-fix.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Wed, 03 Jul 2013 11:05:32 -0700
The patch titled
Subject: memcg: fix build error if CONFIG_MEMCG_KMEM=n
has been added to the -mm tree. Its filename is
memcg-use-css_get-put-when-charging-uncharging-kmem-fix-fix.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
The -mm tree is included into linux-next and is updated there every 3-4 working days
------------------------------------------------------
From: Li Zefan <[email protected]>
Subject: memcg: fix build error if CONFIG_MEMCG_KMEM=n
Fix this build error:
mm/built-in.o: In function `mem_cgroup_css_free':
memcontrol.c:(.text+0x5caa6): undefined reference to 'mem_cgroup_sockets_destroy'
Maybe it's better to add memcg_destroy_kmem(), to pair with memcg_init_kmem().
This patch can be folded into "memcg: use css_get/put when charging/uncharging kmem".
Rename the patch as it is a follow-up for the mmotm tree:
"memcg-use-css_get-put-when-charging-uncharging-kmem-fix-2.patch"
See [1] for the original patch and follow the discussion in [2].
[1] http://marc.info/?l=linux-mm&m=137285590123430&w=2
[2] http://marc.info/?t=137285378500005&r=1&w=2
---
mm/memcontrol.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-use-css_get-put-when-charging-uncharging-kmem-fix-fix +9 -1
@@ -5916,6 +5916,11 @@ static int memcg_init_kmem(struct mem_cgreturn mem_cgroup_sockets_init (memcg, ss); } +static void memcg_destroy_kmem (struct mem_cgroup *memcg) +{ +mem_cgroup_sockets_destroy (memcg); +} +static void kmem_cgroup_css_offline (struct mem_cgroup *memcg) {if (!memcg_kmem_is_active (memcg))
@@ -5955,6 +5960,10 @@ static int memcg_init_kmem(struct mem_cgreturn 0 ; } +static void memcg_destroy_kmem (struct mem_cgroup *memcg) +{ +} +static void kmem_cgroup_css_offline (struct mem_cgroup *memcg) { }
@@ -6399,8 +6408,7 @@ static void mem_cgroup_css_free(struct c {struct mem_cgroup *memcg =mem_cgroup_from_cont (cont); -mem_cgroup_sockets_destroy (memcg);