From: KOSAKI Motohiro Date: Tue, 22 Sep 2009 00:01:46 +0000 (-0700) Subject: vmscan: kill unnecessary prefetch X-Git-Tag: v2.6.32-rc1~566 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a26f5320c4ee3d46a0da48fa0f3ac6a00b575793;p=thirdparty%2Fkernel%2Flinux.git vmscan: kill unnecessary prefetch The pages in the list passed move_active_pages_to_lru() are already touched by shrink_active_list(). IOW the prefetch in move_active_pages_to_lru() don't populate any cache. it's pointless. This patch remove it. Signed-off-by: KOSAKI Motohiro Reviewed-by: Johannes Weiner Cc: Rik van Riel Cc: Minchan Kim Cc: Mel Gorman Cc: Wu Fengguang Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/vmscan.c b/mm/vmscan.c index 20c5fa8eca466..e219b47fc50ba 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -1273,7 +1273,6 @@ static void move_active_pages_to_lru(struct zone *zone, while (!list_empty(list)) { page = lru_to_page(list); - prefetchw_prev_lru_page(page, list, flags); VM_BUG_ON(PageLRU(page)); SetPageLRU(page);