From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934421Ab0EEMwQ (ORCPT ); Wed, 5 May 2010 08:52:16 -0400 Received: from gir.skynet.ie ([193.1.99.77]:50107 "EHLO gir.skynet.ie" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752120Ab0EEMwP (ORCPT ); Wed, 5 May 2010 08:52:15 -0400 Date: Wed, 5 May 2010 13:51:56 +0100 From: Mel Gorman To: Andrea Arcangeli Cc: Andrew Morton , Christoph Lameter , Adam Litke , Avi Kivity , David Rientjes , Minchan Kim , KAMEZAWA Hiroyuki , KOSAKI Motohiro , Rik van Riel , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] fix count_vm_event preempt in memory compaction direct reclaim Message-ID: <20100505125156.GM20979@csn.ul.ie> References: <1271797276-31358-1-git-send-email-mel@csn.ul.ie> <1271797276-31358-13-git-send-email-mel@csn.ul.ie> <20100505121908.GA5835@random.random> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <20100505121908.GA5835@random.random> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, May 05, 2010 at 02:19:08PM +0200, Andrea Arcangeli wrote: > On Tue, Apr 20, 2010 at 10:01:14PM +0100, Mel Gorman wrote: > > + if (page) { > > + __count_vm_event(COMPACTSUCCESS); > > + return page; > > == > From: Andrea Arcangeli > > Preempt is enabled so it must use count_vm_event. > > Signed-off-by: Andrea Arcangeli Reviewed-by: Mel Gorman Andrew, this is a fix to the patch mmcompaction-direct-compact-when-a-high-order-allocation-fails.patch Thanks Andrea, well spotted. > --- > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -1768,7 +1768,7 @@ __alloc_pages_direct_compact(gfp_t gfp_m > alloc_flags, preferred_zone, > migratetype); > if (page) { > - __count_vm_event(COMPACTSUCCESS); > + count_vm_event(COMPACTSUCCESS); > return page; > } > > -- Mel Gorman Part-time Phd Student Linux Technology Center University of Limerick IBM Dublin Software Lab