Commit ea3061d2 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

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: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 42a9fdbb
...@@ -3285,7 +3285,7 @@ static int list_locations(struct kmem_cache *s, char *buf, ...@@ -3285,7 +3285,7 @@ static int list_locations(struct kmem_cache *s, char *buf,
int node; int node;
if (!alloc_loc_track(&t, PAGE_SIZE / sizeof(struct location), if (!alloc_loc_track(&t, PAGE_SIZE / sizeof(struct location),
GFP_KERNEL)) GFP_TEMPORARY))
return sprintf(buf, "Out of memory\n"); return sprintf(buf, "Out of memory\n");
/* Push back cpu slabs */ /* Push back cpu slabs */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment