+ memcg-remove-redundant-code-in-mem_cgroup_force_empty_write.patch added to -mm tree
Subsystems (2)
[email protected]
maintainerSubject: + memcg-remove-redundant-code-in-mem_cgroup_force_empty_write.patch added to -mm tree
To: [email protected],[email protected],[email protected],[email protected],[email protected]
From: [email protected]
Date: Tue, 30 Jul 2013 13:34:55 -0700
The patch titled
Subject: memcg: remove redundant code in mem_cgroup_force_empty_write()
has been added to the -mm tree. Its filename is
memcg-remove-redundant-code-in-mem_cgroup_force_empty_write.patch
This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/memcg-remove-redundant-code-in-mem_cgroup_force_empty_write.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/memcg-remove-redundant-code-in-mem_cgroup_force_empty_write.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: remove redundant code in mem_cgroup_force_empty_write()
vfs guarantees the cgroup won't be destroyed, so it's redundant to get a css reference.
---
mm/memcontrol.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-remove-redundant-code-in-mem_cgroup_force_empty_write +0 -4
@@ -5005,15 +5005,10 @@ static int mem_cgroup_force_empty(structstatic int mem_cgroup_force_empty_write (struct cgroup *cont,unsigned int event) {struct mem_cgroup *memcg =mem_cgroup_from_cont (cont); -int ret;if (mem_cgroup_is_root (memcg))return -EINVAL ; -css_get (&memcg->css); - ret =mem_cgroup_force_empty (memcg); -css_put (&memcg->css);