diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 54a8d26f612f..0d53eb0dfb6f 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -150,15 +150,15 @@ void __weak arch_release_thread_info(struct thread_info *ti) | |||
150 | static struct thread_info *alloc_thread_info_node(struct task_struct *tsk, | 150 | static struct thread_info *alloc_thread_info_node(struct task_struct *tsk, |
151 | int node) | 151 | int node) |
152 | { | 152 | { |
153 | struct page *page = alloc_pages_node(node, THREADINFO_GFP_ACCOUNTED, | 153 | struct page *page = alloc_kmem_pages_node(node, THREADINFO_GFP, |
154 | THREAD_SIZE_ORDER); | 154 | THREAD_SIZE_ORDER); |
155 | 155 | ||
156 | return page ? page_address(page) : NULL; | 156 | return page ? page_address(page) : NULL; |
157 | } | 157 | } |
158 | 158 | ||
159 | static inline void free_thread_info(struct thread_info *ti) | 159 | static inline void free_thread_info(struct thread_info *ti) |
160 | { | 160 | { |
161 | free_memcg_kmem_pages((unsigned long)ti, THREAD_SIZE_ORDER); | 161 | free_kmem_pages((unsigned long)ti, THREAD_SIZE_ORDER); |
162 | } | 162 | } |
163 | # else | 163 | # else |
164 | static struct kmem_cache *thread_info_cache; | 164 | static struct kmem_cache *thread_info_cache; |
@@ -1099,12 +1099,12 @@ static void rt_mutex_init_task(struct task_struct *p) | |||
1099 | #endif | 1099 | #endif |
1100 | } | 1100 | } |
1101 | 1101 | ||
1102 | #ifdef CONFIG_MM_OWNER | 1102 | #ifdef CONFIG_MEMCG |
1103 | void mm_init_owner(struct mm_struct *mm, struct task_struct *p) | 1103 | void mm_init_owner(struct mm_struct *mm, struct task_struct *p) |
1104 | { | 1104 | { |
1105 | mm->owner = p; | 1105 | mm->owner = p; |
1106 | } | 1106 | } |
1107 | #endif /* CONFIG_MM_OWNER */ | 1107 | #endif /* CONFIG_MEMCG */ |
1108 | 1108 | ||
1109 | /* | 1109 | /* |
1110 | * Initialize POSIX timer handling for a single task. | 1110 | * Initialize POSIX timer handling for a single task. |