mm: remove __GFP_NO_KSWAPD fixes

Turns out I missed two spots where __GFP_NO_KSWAPD is used.

The removal from the trace code is obvious, since the flag
got removed there is no need to print it.

For mtdcore.c, now that memory compaction has been fixed, we should no
longer see large swap storms from an attempt to allocate a large buffer,
removing the need to specify __GFP_NO_KSWAPD.

Signed-off-by: Rik van Riel <>
Cc: Andrea Arcangeli <>
Cc: Mel Gorman <>
Cc: Artem Bityutskiy <>
Cc: David Woodhouse <>
Cc: Minchan Kim <>
Signed-off-by: Andrew Morton <>
2 files changed