fix CONFIG_SWAP=n build
Cc: Shaohua Li <shli@fusionio.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
return error;
}
+#ifdef CONFIG_SWAP
static int swapin_walk_pmd_entry(pmd_t *pmd, unsigned long start,
unsigned long end, struct mm_walk *walk)
{
lru_add_drain(); /* Push any new pages onto the LRU now */
}
+#endif /* CONFIG_SWAP */
/*
* Schedule all required I/O operations. Do not wait for completion.