mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Patch to get swap_token working without CONFIG_SWAP
@ 2004-12-22 14:52 Holger Schurig
  0 siblings, 0 replies; only message in thread
From: Holger Schurig @ 2004-12-22 14:52 UTC (permalink / raw)
  To: linux-kernel

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++;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-12-22 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-22 14:52 Patch to get swap_token working without CONFIG_SWAP Holger Schurig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®