linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 11/13] mm: use list_move() instead of list_del()/list_add() combination
       [not found] <1300229605-14499-1-git-send-email-kirill@shutemov.name>
@ 2011-03-15 22:53 ` Kirill A. Shutemov
  2011-03-17 13:54   ` Christoph Lameter
  0 siblings, 1 reply; 2+ messages in thread
From: Kirill A. Shutemov @ 2011-03-15 22:53 UTC (permalink / raw)
  To: linux-kernel
  Cc: Kirill A. Shutemov, Andrew Morton, Mel Gorman, Rik van Riel,
	Christoph Lameter, KAMEZAWA Hiroyuki, linux-mm

Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Rik van Riel <riel@redhat.com>
Cc: Christoph Lameter <cl@linux.com>
Cc: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
Cc: linux-mm@kvack.org
---
 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 cdef1d4..55fa2ae 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -863,9 +863,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;
 	}
-- 
1.7.4.1

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 11/13] mm: use list_move() instead of list_del()/list_add() combination
  2011-03-15 22:53 ` [PATCH 11/13] mm: use list_move() instead of list_del()/list_add() combination Kirill A. Shutemov
@ 2011-03-17 13:54   ` Christoph Lameter
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2011-03-17 13:54 UTC (permalink / raw)
  To: Kirill A. Shutemov
  Cc: linux-kernel, Andrew Morton, Mel Gorman, Rik van Riel,
	KAMEZAWA Hiroyuki, linux-mm


Reviewed-by: Christoph Lameter <cl@linux.com>

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-03-17 15:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1300229605-14499-1-git-send-email-kirill@shutemov.name>
2011-03-15 22:53 ` [PATCH 11/13] mm: use list_move() instead of list_del()/list_add() combination Kirill A. Shutemov
2011-03-17 13:54   ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).