Patch to get swap_token working without CONFIG_SWAP

From: Holger Schurig
Date: Wed Dec 22 2004 - 09:53:40 EST


Some embedded devices won't have CONFIG_SWAP defined, this breaks rmap.c
near line 386. This fixes it:

#
# Patch managed by http://www.holgerschurig.de/patcher.html
#

Signed-off-by: Holger Schurig <hs4233@xxxxxxxxxxxxxxxxxxxx>

--- linux-2.6/mm/rmap.c~fix-rmapswap
+++ linux-2.6/mm/rmap.c
@@ -395,8 +395,10 @@
{
int referenced = 0;

+#ifdef CONFIG_SWAP
if (!swap_token_default_timeout)
ignore_token = 1;
+#endif

if (page_test_and_clear_young(page))
referenced++;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/