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

Commit 1701d5eb authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

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

parents c7edb6df e5eed63c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -63,6 +63,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>
@@ -3413,6 +3414,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, ...)