Skip to contentSkip to conversation

+ memcg-get_mem_cgroup_from_mm-fix.patch added to -mm tree

PATCH [email protected] 1 participant 1 message Mar 26, 2014

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

Subject: + memcg-get_mem_cgroup_from_mm-fix.patch added to -mm tree
To: [email protected],[email protected]
From: [email protected]
Date: Wed, 26 Mar 2014 13:37:48 -0700

The patch titled
Subject: memcg-get_mem_cgroup_from_mm-fix
has been added to the -mm tree. Its filename is
memcg-get_mem_cgroup_from_mm-fix.patch

This patch should soon appear at
http://ozlabs.org/~akpm/mmots/broken-out/memcg-get_mem_cgroup_from_mm-fix.patch
and later at
http://ozlabs.org/~akpm/mmotm/broken-out/memcg-get_mem_cgroup_from_mm-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: Fengguang Wu <[email protected]>
Subject: memcg-get_mem_cgroup_from_mm-fix

---

 include/linux/memcontrol.h |    6 ------
 mm/memcontrol.c            |    2 +-
 2 files changed, 1 insertion(+), 7 deletions(-)
include/linux/memcontrol.h renamed from include/linux/memcontrol.h~memcg-get_mem_cgroup_from_mm-fix +0 -6
diff -puN include/linux/memcontrol.h~memcg-get_mem_cgroup_from_mm-fix include/linux/memcontrol.h
@@ -94,7 +94,6 @@ bool task_in_mem_cgroup(struct task_stru
 
 extern struct mem_cgroup *try_get_mem_cgroup_from_page(struct page *page);
 extern struct mem_cgroup *mem_cgroup_from_task(struct task_struct *p);
-extern struct mem_cgroup *try_get_mem_cgroup_from_mm(struct mm_struct *mm);
 
 extern struct mem_cgroup *parent_mem_cgroup(struct mem_cgroup *memcg);
 extern struct mem_cgroup *mem_cgroup_from_css(struct cgroup_subsys_state *css);
@@ -293,11 +292,6 @@ static inline struct mem_cgroup *try_get
 {
 	return NULL;
 }
-
-static inline struct mem_cgroup *try_get_mem_cgroup_from_mm(struct mm_struct *mm)
-{
-	return NULL;
-}
 
 static inline bool mm_match_cgroup(struct mm_struct *mm,
 		struct mem_cgroup *memcg)
mm/memcontrol.c renamed from mm/memcontrol.c~memcg-get_mem_cgroup_from_mm-fix +1 -1
diff -puN mm/memcontrol.c~memcg-get_mem_cgroup_from_mm-fix mm/memcontrol.c
@@ -1071,7 +1071,7 @@ struct mem_cgroup *mem_cgroup_from_task(
 	return mem_cgroup_from_css(task_css(p, mem_cgroup_subsys_id));
 }
 
-struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm)
+static struct mem_cgroup *get_mem_cgroup_from_mm(struct mm_struct *mm)
 {
 	struct mem_cgroup *memcg = NULL;
 

_

Patches currently in -mm which might be from [email protected] are

pagewalk-remove-argument-hmask-from-hugetlb_entry-fix.patch pagewalk-remove-argument-hmask-from-hugetlb_entry-fix-fix.patch mm-readaheadc-fix-readahead-failure-for-memoryless-numa-nodes-and-limit-readahead-pages.patch tools-vm-page-typesc-page-cache-sniffing-feature.patch memcg-get_mem_cgroup_from_mm-fix.patch zram-propagate-error-to-user-fix-2.patch
linux-next.patch
slub-use-raw_cpu_inc-for-incrementing-statistics.patch slub-use-raw_cpu_inc-for-incrementing-statistics-fix.patch mm-add-strictlimit-knob-v2.patch
debugging-keep-track-of-page-owners.patch