diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2007-10-16 04:26:09 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-16 12:43:01 -0400 |
commit | ea3061d227816d00717446ac12b853d7ae04b4fe (patch) | |
tree | fa63e359433ba09481d0c758cdf54c877b29e5f0 /mm | |
parent | 42a9fdbb12ac6c027b4b91ab9b5a60aa3a834489 (diff) |
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>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -3285,7 +3285,7 @@ static int list_locations(struct kmem_cache *s, char *buf, | |||
3285 | int node; | 3285 | int node; |
3286 | 3286 | ||
3287 | if (!alloc_loc_track(&t, PAGE_SIZE / sizeof(struct location), | 3287 | if (!alloc_loc_track(&t, PAGE_SIZE / sizeof(struct location), |
3288 | GFP_KERNEL)) | 3288 | GFP_TEMPORARY)) |
3289 | return sprintf(buf, "Out of memory\n"); | 3289 | return sprintf(buf, "Out of memory\n"); |
3290 | 3290 | ||
3291 | /* Push back cpu slabs */ | 3291 | /* Push back cpu slabs */ |