Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andrew Morton and committed by
Linus Torvalds
ea3061d2 42a9fdbb

+1 -1
+1 -1
mm/slub.c
··· 3285 3285 int node; 3286 3286 3287 3287 if (!alloc_loc_track(&t, PAGE_SIZE / sizeof(struct location), 3288 - GFP_KERNEL)) 3288 + GFP_TEMPORARY)) 3289 3289 return sprintf(buf, "Out of memory\n"); 3290 3290 3291 3291 /* Push back cpu slabs */