public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cgroups: don't depend on CONFIG_MM_OWNER
@ 2008-09-14 17:37 Pekka J Enberg
  2008-09-15 17:55 ` Paul Menage
  0 siblings, 1 reply; 3+ messages in thread
From: Pekka J Enberg @ 2008-09-14 17:37 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, menage, balbir

From: Pekka Enberg <penberg@cs.helsinki.fi>

The revoke patches, for example, select CONFIG_MM_OWNER independently of
cgroups. Therefore, don't depend on CONFIG_MM_OWNER in cgroup specific code.

Cc: Paul Menage <menage@google.com>
Cc: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
---
 include/linux/cgroup.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/cgroup.h b/include/linux/cgroup.h
index c98dd7c..e270ec3 100644
--- a/include/linux/cgroup.h
+++ b/include/linux/cgroup.h
@@ -413,10 +413,10 @@ static inline int cgroupstats_build(struct cgroupstats *stats,
 
 #endif /* !CONFIG_CGROUPS */
 
-#ifdef CONFIG_MM_OWNER
+#ifdef CONFIG_CGROUP_MEM_RES_CTLR
 extern void
 cgroup_mm_owner_callbacks(struct task_struct *old, struct task_struct *new);
-#else /* !CONFIG_MM_OWNER */
+#else /* !CONFIG_CGROUP_MEM_RES_CTLR */
 static inline void
 cgroup_mm_owner_callbacks(struct task_struct *old, struct task_struct *new)
 {
-- 
1.5.4.3


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-15 17:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-14 17:37 [PATCH] cgroups: don't depend on CONFIG_MM_OWNER Pekka J Enberg
2008-09-15 17:55 ` Paul Menage
2008-09-15 17:56   ` Pekka Enberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox