From: Rik van Riel Date: Sat, 24 Mar 2012 14:26:21 +0000 (-0400) Subject: Fix potential endless loop in kswapd when compaction is not enabled X-Git-Tag: v3.4-rc1~95 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=496b919b3bdd957d4b1727df79bfa3751bced1c1;p=pandora-kernel.git Fix potential endless loop in kswapd when compaction is not enabled We should 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. Reported-by: Anton Blanchard Signed-off-by: Rik van Riel Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed