Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755631Ab2FOBZl (ORCPT ); Thu, 14 Jun 2012 21:25:41 -0400 Received: from mail-pz0-f46.google.com ([209.85.210.46]:39770 "EHLO mail-pz0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753877Ab2FOBZk (ORCPT ); Thu, 14 Jun 2012 21:25:40 -0400 From: Wanpeng Li To: linux-mm@kvack.org Cc: Andrew Morton , KAMEZAWA Hiroyuki , Mel Gorman , Minchan Kim , Hugh Dickins , linux-kernel@vger.kernel.org, trivial@kernel.org, Gavin Shan , Wanpeng Li Subject: [PATCH] mm/vmscan: cleanup on the comments of do_try_to_free_pages Date: Fri, 15 Jun 2012 09:25:24 +0800 Message-Id: <1339723524-6332-1-git-send-email-liwp.linux@gmail.com> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1344 Lines: 34 From: Wanpeng Li Since lumpy reclaim algorithm is removed by Mel Gorman, cleanup the footprint of lumpy reclaim. Signed-off-by: Wanpeng Li --- mm/vmscan.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/mm/vmscan.c b/mm/vmscan.c index 603c96f..2fc16cf 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2065,8 +2065,9 @@ static unsigned long do_try_to_free_pages(struct zonelist *zonelist, * Try to write back as many pages as we just scanned. This * tends to cause slow streaming writers to write data to the * disk smoothly, at the dirtying rate, which is nice. But - * that's undesirable in laptop mode, where we *want* lumpy - * writeout. So in laptop mode, write out the whole world. + * that's undesirable in laptop mode, where as much I/O as + * possible should be trigged if the disk needs to be spun up. + * So in laptop mode, write out the whole world. */ writeback_threshold = sc->nr_to_reclaim + sc->nr_to_reclaim / 2; if (total_scanned > writeback_threshold) { -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/