Skip to content

Commit

Permalink
oom-split-out-forced-oom-killer-checkpatch-fixes
Browse files Browse the repository at this point in the history
WARNING: line over 80 characters
torvalds#144: FILE: mm/oom_kill.c:654:
+	struct zonelist *zonelist = node_zonelist(first_memory_node, GFP_KERNEL);

total: 0 errors, 1 warnings, 146 lines checked

./patches/oom-split-out-forced-oom-killer.patch has style problems, please review.

If any of these errors are false positives, please report
them to the maintainer, see CHECKPATCH in MAINTAINERS.

Please run checkpatch prior to sending patches

Cc: Michal Hocko <mhocko@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
  • Loading branch information
akpm00 authored and Michal Hocko committed Jun 5, 2015
1 parent 85936ab commit 3f4b78c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mm/oom_kill.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,14 +651,15 @@ EXPORT_SYMBOL_GPL(unregister_oom_notifier);
*/
bool force_out_of_memory(void)
{
struct zonelist *zonelist = node_zonelist(first_memory_node, GFP_KERNEL);
struct zonelist *zonelist;
struct task_struct *p;
unsigned long totalpages;
unsigned int points;

if (oom_killer_disabled)
return false;

zonelist = node_zonelist(first_memory_node, GFP_KERNEL);
constrained_alloc(zonelist, GFP_KERNEL, NULL, &totalpages);
p = select_bad_process(&points, totalpages, NULL, true);
if (p != (void *)-1UL)
Expand Down

0 comments on commit 3f4b78c

Please sign in to comment.