Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6500d721 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "mm: run the showmem notifier in alloc failure"

parents 1a805820 8d8eacdb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -64,6 +64,7 @@
#include <linux/page_owner.h>
#include <linux/kthread.h>
#include <linux/memcontrol.h>
#include <linux/show_mem_notifier.h>
#include <linux/ftrace.h>
#include <linux/lockdep.h>
#include <linux/nmi.h>
@@ -3750,6 +3751,7 @@ static void warn_alloc_show_mem(gfp_t gfp_mask, nodemask_t *nodemask)
		filter &= ~SHOW_MEM_FILTER_NODES;

	show_mem(filter, nodemask);
	show_mem_call_notifiers();
}

void warn_alloc(gfp_t gfp_mask, nodemask_t *nodemask, const char *fmt, ...)