vmscan: kill unnecessary prefetch
authorKOSAKI Motohiro <[email protected]>
Tue, 22 Sep 2009 00:01:46 +0000 (17:01 -0700)
committerLinus Torvalds <[email protected]>
Tue, 22 Sep 2009 14:17:30 +0000 (07:17 -0700)
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 <[email protected]>
Reviewed-by: Johannes Weiner <[email protected]>
Cc: Rik van Riel <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Wu Fengguang <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c

index 20c5fa8eca466f603d7356584c2cbcaa3b81cc07..e219b47fc50baecb7bcab48cbdd3783388a9c716 100644 (file)
@@ -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);