diff options
Diffstat (limited to 'mm/oom_kill.c')
-rw-r--r-- | mm/oom_kill.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mm/oom_kill.c b/mm/oom_kill.c index d46ed0f1dc06..b9af136e5cfa 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c | |||
@@ -225,7 +225,7 @@ static struct task_struct *select_bad_process(unsigned long *ppoints) | |||
225 | * CAP_SYS_RAW_IO set, send SIGTERM instead (but it's unlikely that | 225 | * CAP_SYS_RAW_IO set, send SIGTERM instead (but it's unlikely that |
226 | * we select a process with CAP_SYS_RAW_IO set). | 226 | * we select a process with CAP_SYS_RAW_IO set). |
227 | */ | 227 | */ |
228 | static void __oom_kill_task(task_t *p, const char *message) | 228 | static void __oom_kill_task(struct task_struct *p, const char *message) |
229 | { | 229 | { |
230 | if (p->pid == 1) { | 230 | if (p->pid == 1) { |
231 | WARN_ON(1); | 231 | WARN_ON(1); |
@@ -255,10 +255,10 @@ static void __oom_kill_task(task_t *p, const char *message) | |||
255 | force_sig(SIGKILL, p); | 255 | force_sig(SIGKILL, p); |
256 | } | 256 | } |
257 | 257 | ||
258 | static int oom_kill_task(task_t *p, const char *message) | 258 | static int oom_kill_task(struct task_struct *p, const char *message) |
259 | { | 259 | { |
260 | struct mm_struct *mm; | 260 | struct mm_struct *mm; |
261 | task_t * g, * q; | 261 | struct task_struct *g, *q; |
262 | 262 | ||
263 | mm = p->mm; | 263 | mm = p->mm; |
264 | 264 | ||
@@ -316,7 +316,7 @@ static int oom_kill_process(struct task_struct *p, unsigned long points, | |||
316 | */ | 316 | */ |
317 | void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order) | 317 | void out_of_memory(struct zonelist *zonelist, gfp_t gfp_mask, int order) |
318 | { | 318 | { |
319 | task_t *p; | 319 | struct task_struct *p; |
320 | unsigned long points = 0; | 320 | unsigned long points = 0; |
321 | 321 | ||
322 | if (printk_ratelimit()) { | 322 | if (printk_ratelimit()) { |