From: Andrew Morton <akpm@linux-foundation.org>
Date: Tue, 16 Oct 2007 08:26:09 +0000 (-0700)
Subject: slub: list_locations() can use GFP_TEMPORARY
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ea3061d227816d00717446ac12b853d7ae04b4fe;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git

slub: list_locations() can use GFP_TEMPORARY

It's a short-lived allocation.

Cc: Christoph Lameter <clameter@sgi.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
---

diff --git a/mm/slub.c b/mm/slub.c
index 1d48f383e97..f426f9bc644 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -3285,7 +3285,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
 	int node;
 
 	if (!alloc_loc_track(&t, PAGE_SIZE / sizeof(struct location),
-			GFP_KERNEL))
+			GFP_TEMPORARY))
 		return sprintf(buf, "Out of memory\n");
 
 	/* Push back cpu slabs */