diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/page_alloc.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 134e25525044..b7a881019352 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -1131,8 +1131,8 @@ static void change_pageblock_range(struct page *pageblock_page, | |||
1131 | * nor move CMA pages to different free lists. We don't want unmovable pages | 1131 | * nor move CMA pages to different free lists. We don't want unmovable pages |
1132 | * to be allocated from MIGRATE_CMA areas. | 1132 | * to be allocated from MIGRATE_CMA areas. |
1133 | * | 1133 | * |
1134 | * Returns the new migratetype of the pageblock (or the same old migratetype | 1134 | * Returns the allocation migratetype if free pages were stolen, or the |
1135 | * if it was unchanged). | 1135 | * fallback migratetype if it was decided not to steal. |
1136 | */ | 1136 | */ |
1137 | static int try_to_steal_freepages(struct zone *zone, struct page *page, | 1137 | static int try_to_steal_freepages(struct zone *zone, struct page *page, |
1138 | int start_type, int fallback_type) | 1138 | int start_type, int fallback_type) |
@@ -1163,12 +1163,10 @@ static int try_to_steal_freepages(struct zone *zone, struct page *page, | |||
1163 | 1163 | ||
1164 | /* Claim the whole block if over half of it is free */ | 1164 | /* Claim the whole block if over half of it is free */ |
1165 | if (pages >= (1 << (pageblock_order-1)) || | 1165 | if (pages >= (1 << (pageblock_order-1)) || |
1166 | page_group_by_mobility_disabled) { | 1166 | page_group_by_mobility_disabled) |
1167 | |||
1168 | set_pageblock_migratetype(page, start_type); | 1167 | set_pageblock_migratetype(page, start_type); |
1169 | return start_type; | ||
1170 | } | ||
1171 | 1168 | ||
1169 | return start_type; | ||
1172 | } | 1170 | } |
1173 | 1171 | ||
1174 | return fallback_type; | 1172 | return fallback_type; |
@@ -1220,7 +1218,7 @@ __rmqueue_fallback(struct zone *zone, unsigned int order, int start_migratetype) | |||
1220 | set_freepage_migratetype(page, new_type); | 1218 | set_freepage_migratetype(page, new_type); |
1221 | 1219 | ||
1222 | trace_mm_page_alloc_extfrag(page, order, current_order, | 1220 | trace_mm_page_alloc_extfrag(page, order, current_order, |
1223 | start_migratetype, migratetype, new_type); | 1221 | start_migratetype, migratetype); |
1224 | 1222 | ||
1225 | return page; | 1223 | return page; |
1226 | } | 1224 | } |