|
@@ -535,6 +535,13 @@ static void mm_init_aio(struct mm_struct *mm)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
+static void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
|
|
|
+{
|
|
|
+#ifdef CONFIG_MEMCG
|
|
|
+ mm->owner = p;
|
|
|
+#endif
|
|
|
+}
|
|
|
+
|
|
|
static struct mm_struct *mm_init(struct mm_struct *mm, struct task_struct *p)
|
|
|
{
|
|
|
mm->mmap = NULL;
|
|
@@ -1139,13 +1146,6 @@ static void rt_mutex_init_task(struct task_struct *p)
|
|
|
#endif
|
|
|
}
|
|
|
|
|
|
-#ifdef CONFIG_MEMCG
|
|
|
-void mm_init_owner(struct mm_struct *mm, struct task_struct *p)
|
|
|
-{
|
|
|
- mm->owner = p;
|
|
|
-}
|
|
|
-#endif /* CONFIG_MEMCG */
|
|
|
-
|
|
|
/*
|
|
|
* Initialize POSIX timer handling for a single task.
|
|
|
*/
|