diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 370b64d03e3f..7ca668e946e5 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -2350,16 +2350,16 @@ static int rmqueue_bulk(struct zone *zone, unsigned int order, | |||
2350 | continue; | 2350 | continue; |
2351 | 2351 | ||
2352 | /* | 2352 | /* |
2353 | * Split buddy pages returned by expand() are received here | 2353 | * Split buddy pages returned by expand() are received here in |
2354 | * in physical page order. The page is added to the callers and | 2354 | * physical page order. The page is added to the tail of |
2355 | * list and the list head then moves forward. From the callers | 2355 | * caller's list. From the callers perspective, the linked list |
2356 | * perspective, the linked list is ordered by page number in | 2356 | * is ordered by page number under some conditions. This is |
2357 | * some conditions. This is useful for IO devices that can | 2357 | * useful for IO devices that can forward direction from the |
2358 | * merge IO requests if the physical pages are ordered | 2358 | * head, thus also in the physical page order. This is useful |
2359 | * properly. | 2359 | * for IO devices that can merge IO requests if the physical |
2360 | * pages are ordered properly. | ||
2360 | */ | 2361 | */ |
2361 | list_add(&page->lru, list); | 2362 | list_add_tail(&page->lru, list); |
2362 | list = &page->lru; | ||
2363 | alloced++; | 2363 | alloced++; |
2364 | if (is_migrate_cma(get_pcppage_migratetype(page))) | 2364 | if (is_migrate_cma(get_pcppage_migratetype(page))) |
2365 | __mod_zone_page_state(zone, NR_FREE_CMA_PAGES, | 2365 | __mod_zone_page_state(zone, NR_FREE_CMA_PAGES, |