diff options
Diffstat (limited to 'mm/page_alloc.c')
-rw-r--r-- | mm/page_alloc.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/mm/page_alloc.c b/mm/page_alloc.c index 136a547262a0..3a58221f4c22 100644 --- a/mm/page_alloc.c +++ b/mm/page_alloc.c | |||
@@ -867,9 +867,8 @@ static int move_freepages(struct zone *zone, | |||
867 | } | 867 | } |
868 | 868 | ||
869 | order = page_order(page); | 869 | order = page_order(page); |
870 | list_del(&page->lru); | 870 | list_move(&page->lru, |
871 | list_add(&page->lru, | 871 | &zone->free_area[order].free_list[migratetype]); |
872 | &zone->free_area[order].free_list[migratetype]); | ||
873 | page += 1 << order; | 872 | page += 1 << order; |
874 | pages_moved += 1 << order; | 873 | pages_moved += 1 << order; |
875 | } | 874 | } |