Commit 78d5506e82b21a1a1de68c24182db2c2fe521422

Authored by Joonsoo Kim
Committed by Linus Torvalds
1 parent 59c82b70dc

mm/migrate: remove unused function, fail_migrate_page()

fail_migrate_page() isn't used anywhere, so remove it.

Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com>
Acked-by: Christoph Lameter <cl@linux.com>
Reviewed-by: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Reviewed-by: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Rafael Aquini <aquini@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Mel Gorman <mgorman@suse.de>
Cc: Rik van Riel <riel@redhat.com>
Cc: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 2 changed files with 0 additions and 12 deletions Side-by-side Diff

include/linux/migrate.h
... ... @@ -41,9 +41,6 @@
41 41 extern int migrate_pages(struct list_head *l, new_page_t x,
42 42 unsigned long private, enum migrate_mode mode, int reason);
43 43  
44   -extern int fail_migrate_page(struct address_space *,
45   - struct page *, struct page *);
46   -
47 44 extern int migrate_prep(void);
48 45 extern int migrate_prep_local(void);
49 46 extern int migrate_vmas(struct mm_struct *mm,
... ... @@ -84,7 +81,6 @@
84 81  
85 82 /* Possible settings for the migrate_page() method in address_operations */
86 83 #define migrate_page NULL
87   -#define fail_migrate_page NULL
88 84  
89 85 #endif /* CONFIG_MIGRATION */
90 86  
... ... @@ -552,14 +552,6 @@
552 552 * Migration functions
553 553 ***********************************************************/
554 554  
555   -/* Always fail migration. Used for mappings that are not movable */
556   -int fail_migrate_page(struct address_space *mapping,
557   - struct page *newpage, struct page *page)
558   -{
559   - return -EIO;
560   -}
561   -EXPORT_SYMBOL(fail_migrate_page);
562   -
563 555 /*
564 556 * Common logic to directly migrate a single page suitable for
565 557 * pages that do not use PagePrivate/PagePrivate2.