]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mm-make-madvisemadv_willneed-support-swap-file-prefetch-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 7 Feb 2013 01:26:16 +0000 (12:26 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 18 Feb 2013 05:46:19 +0000 (16:46 +1100)
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>
mm/madvise.c

index 51d57c12dd785e721dd69bb2987dc0b953d72d2a..e5602536508fb62199bdf0af7385c7020ae7d97a 100644 (file)
@@ -134,6 +134,7 @@ out:
        return error;
 }
 
+#ifdef CONFIG_SWAP
 static int swapin_walk_pmd_entry(pmd_t *pmd, unsigned long start,
        unsigned long end, struct mm_walk *walk)
 {
@@ -209,6 +210,7 @@ static void force_shm_swapin_readahead(struct vm_area_struct *vma,
 
        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.