Skip to content

Commit

Permalink
slub: list_locations() can use GFP_TEMPORARY
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Morton authored and Linus Torvalds committed Oct 16, 2007
1 parent 42a9fdb commit ea3061d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit ea3061d

Please sign in to comment.