On Mon, Mar 26, 2012 at 12:32 PM, Mel Gorman [off-list ref] wrote:
On Sat, Mar 24, 2012 at 10:26:21AM -0400, Rik van Riel wrote:
quoted
Only test compaction_suitable if the kernel is built with CONFIG_COMPACTION,
otherwise the stub compaction_suitable function will always return
COMPACT_SKIPPED and send kswapd into an infinite loop.
Signed-off-by: Rik van Riel <redacted>
Reported-by: Anton Blanchard <redacted>
Acked-by: Mel Gorman <redacted>
The API looks fragile and this patch isn't exactly making it any
better. Why don't we make compaction_suitable() return something other
than COMPACT_SKIPPED for !CONFIG_COMPACTION case?
Pekka
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>