]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ksm-introduce-ksm_max_page_sharing-per-page-deduplication-limit-fix-2
authorAndrew Morton <akpm@linux-foundation.org>
Tue, 9 Feb 2016 23:13:00 +0000 (10:13 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 9 Feb 2016 23:13:00 +0000 (10:13 +1100)
fix non-NUMA build

Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/ksm.c

index a8d15eb0ec48c088bc888d392eccdadf620e8733..9df540adfd4434d83b8cbb5c4a0058382b7d52e6 100644 (file)
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -557,7 +557,7 @@ static struct stable_node *alloc_stable_node_chain(struct stable_node *dup,
                INIT_HLIST_HEAD(&chain->hlist);
                chain->chain_prune_time = jiffies;
                chain->rmap_hlist_len = STABLE_NODE_CHAIN;
-#ifdef CONFIG_DEBUG_VM
+#if defined (CONFIG_DEBUG_VM) && defined(CONFIG_NUMA)
                chain->nid = -1; /* debug */
 #endif
                ksm_stable_node_chains++;