]> err.no Git - linux-2.6/commitdiff
slub: list_locations() can use GFP_TEMPORARY
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 16 Oct 2007 08:26:09 +0000 (01:26 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 16 Oct 2007 16:43:01 +0000 (09:43 -0700)
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>
mm/slub.c

index 1d48f383e97d61fb25dd0cb07e3b4e2bb3d7895d..f426f9bc644b992fd12ec535ac8510b93682fe0c 100644 (file)
--- 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 */