]> 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>
Wed, 20 Feb 2013 02:14:05 +0000 (13:14 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:23 +0000 (16:52 +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.