From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail190.messagelabs.com (mail190.messagelabs.com [216.82.249.51]) by kanga.kvack.org (Postfix) with SMTP id 72CF66B00AA for ; Wed, 27 Oct 2010 21:16:26 -0400 (EDT) Received: from m2.gw.fujitsu.co.jp ([10.0.50.72]) by fgwmail7.fujitsu.co.jp (Fujitsu Gateway) with ESMTP id o9S1GLq1006703 for (envelope-from kamezawa.hiroyu@jp.fujitsu.com); Thu, 28 Oct 2010 10:16:21 +0900 Received: from smail (m2 [127.0.0.1]) by outgoing.m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 34F6945DE57 for ; Thu, 28 Oct 2010 10:16:21 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (s2.gw.fujitsu.co.jp [10.0.50.92]) by m2.gw.fujitsu.co.jp (Postfix) with ESMTP id 1102545DE4F for ; Thu, 28 Oct 2010 10:16:21 +0900 (JST) Received: from s2.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id E883AE08005 for ; Thu, 28 Oct 2010 10:16:20 +0900 (JST) Received: from ml13.s.css.fujitsu.com (ml13.s.css.fujitsu.com [10.249.87.103]) by s2.gw.fujitsu.co.jp (Postfix) with ESMTP id A269FE08002 for ; Thu, 28 Oct 2010 10:16:20 +0900 (JST) Date: Thu, 28 Oct 2010 10:10:53 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCH 2/2] mm: vmstat: Use a single setter function and callback for adjusting percpu thresholds Message-Id: <20101028101053.f68ad2c4.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <1288169256-7174-3-git-send-email-mel@csn.ul.ie> References: <1288169256-7174-1-git-send-email-mel@csn.ul.ie> <1288169256-7174-3-git-send-email-mel@csn.ul.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org To: Mel Gorman Cc: Andrew Morton , Shaohua Li , KOSAKI Motohiro , Christoph Lameter , David Rientjes , LKML , Linux-MM List-ID: On Wed, 27 Oct 2010 09:47:36 +0100 Mel Gorman wrote: > reduce_pgdat_percpu_threshold() and restore_pgdat_percpu_threshold() > exist to adjust the per-cpu vmstat thresholds while kswapd is awake to > avoid errors due to counter drift. The functions duplicate some code so > this patch replaces them with a single set_pgdat_percpu_threshold() that > takes a callback function to calculate the desired threshold as a > parameter. > > Signed-off-by: Mel Gorman Reviewed-by: KAMEZAWA Hiroyuki -- 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/ . Don't email: email@kvack.org