lkml.org 
[lkml]   [2004]   [Dec]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
SubjectPatch to get swap_token working without CONFIG_SWAP
Date
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@mail.mn-solutions.de>

--- 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 14:08    [W:0.052 / U:0.204 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site