mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-03-21 06:24:12 +00:00
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>
This commit is contained in:
parent
42a9fdbb12
commit
ea3061d227
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Reference in a new issue