[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <Pine.LNX.4.64.0809142037070.30252@melkki.cs.Helsinki.FI>
Date: Sun, 14 Sep 2008 20:37:54 +0300 (EEST)
From: Pekka J Enberg <penberg@...helsinki.fi>
To: akpm@...ux-foundation.org
cc: linux-kernel@...r.kernel.org, menage@...gle.com,
balbir@...ux.vnet.ibm.com
Subject: [PATCH] cgroups: don't depend on CONFIG_MM_OWNER
From: Pekka Enberg <penberg@...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@...gle.com>
Cc: Balbir Singh <balbir@...ux.vnet.ibm.com>
Signed-off-by: Pekka Enberg <penberg@...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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists