Skip to content

Commit cbae017

Browse files
Yisheng Xietorvalds
authored andcommitted
mm/migration: make isolate_movable_page always defined
Define isolate_movable_page as a static inline function when CONFIG_MIGRATION is not enable. It should return -EBUSY here which means failed to isolate movable pages. This patch do not have any functional change but prepare for later patch. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Yisheng Xie <[email protected]> Acked-by: Minchan Kim <[email protected]> Suggested-by: Michal Hocko <[email protected]> Cc: Naoya Horiguchi <[email protected]> Cc: Vlastimil Babka <[email protected]> Cc: Andi Kleen <[email protected]> Cc: Hanjun Guo <[email protected]> Cc: Johannes Weiner <[email protected]> Cc: Joonsoo Kim <[email protected]> Cc: Mel Gorman <[email protected]> Cc: Reza Arbab <[email protected]> Cc: Taku Izumi <[email protected]> Cc: Vitaly Kuznetsov <[email protected]> Cc: Xishi Qiu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 9e5bcd6 commit cbae017

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/linux/migrate.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ static inline int migrate_pages(struct list_head *l, new_page_t new,
5656
free_page_t free, unsigned long private, enum migrate_mode mode,
5757
int reason)
5858
{ return -ENOSYS; }
59+
static inline int isolate_movable_page(struct page *page, isolate_mode_t mode)
60+
{ return -EBUSY; }
5961

6062
static inline int migrate_prep(void) { return -ENOSYS; }
6163
static inline int migrate_prep_local(void) { return -ENOSYS; }

0 commit comments

Comments
 (0)