From: Kirill A. Shutemov Date: Tue, 22 Mar 2011 23:33:41 +0000 (-0700) Subject: mm/page_alloc.c: use list_move() instead of list_del()/list_add() combination X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=84be48d84a53044e13aa8816aab201ab5480815d;p=linux-beck.git mm/page_alloc.c: use list_move() instead of list_del()/list_add() combination Signed-off-by: Kirill A. Shutemov Cc: Mel Gorman Cc: Rik van Riel Cc: KAMEZAWA Hiroyuki Reviewed-by: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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, } order = page_order(page); - list_del(&page->lru); - list_add(&page->lru, - &zone->free_area[order].free_list[migratetype]); + list_move(&page->lru, + &zone->free_area[order].free_list[migratetype]); page += 1 << order; pages_moved += 1 << order; }