aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/migrate.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/migrate.h')
-rw-r--r--include/linux/migrate.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/migrate.h b/include/linux/migrate.h
index f0d0313eea6f..91556889adac 100644
--- a/include/linux/migrate.h
+++ b/include/linux/migrate.h
@@ -77,11 +77,17 @@ static inline int migrate_huge_page_move_mapping(struct address_space *mapping,
77 77
78#ifdef CONFIG_NUMA_BALANCING 78#ifdef CONFIG_NUMA_BALANCING
79extern int migrate_misplaced_page(struct page *page, int node); 79extern int migrate_misplaced_page(struct page *page, int node);
80extern int migrate_misplaced_page(struct page *page, int node);
81extern bool migrate_ratelimited(int node);
80#else 82#else
81static inline int migrate_misplaced_page(struct page *page, int node) 83static inline int migrate_misplaced_page(struct page *page, int node)
82{ 84{
83 return -EAGAIN; /* can't migrate now */ 85 return -EAGAIN; /* can't migrate now */
84} 86}
87static inline bool migrate_ratelimited(int node)
88{
89 return false;
90}
85#endif /* CONFIG_NUMA_BALANCING */ 91#endif /* CONFIG_NUMA_BALANCING */
86 92
87#endif /* _LINUX_MIGRATE_H */ 93#endif /* _LINUX_MIGRATE_H */