diff options
author | Kirill A. Shutemov <kirill@shutemov.name> | 2011-03-22 23:33:41 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-03-23 00:44:09 (GMT) |
commit | 84be48d84a53044e13aa8816aab201ab5480815d (patch) | |
tree | 5b4208fee6bb357112e764e5f778adc8529d1b1b /mm/page_alloc.c | |
parent | a42931bf9c02fbf3628a27a2a5c55d2b83e4ff20 (diff) | |
download | linux-84be48d84a53044e13aa8816aab201ab5480815d.tar.xz |
mm/page_alloc.c: use list_move() instead of list_del()/list_add() combination
Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Reviewed-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
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 136a547..3a58221 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; } |