Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762149AbZD1QrU (ORCPT ); Tue, 28 Apr 2009 12:47:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756753AbZD1QrF (ORCPT ); Tue, 28 Apr 2009 12:47:05 -0400 Received: from smtp.ultrahosting.com ([74.213.174.254]:60994 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755992AbZD1QrE (ORCPT ); Tue, 28 Apr 2009 12:47:04 -0400 Date: Tue, 28 Apr 2009 12:37:22 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@qirst.com To: Mel Gorman cc: Andrew Morton , Linux Memory Management List , KOSAKI Motohiro , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Peter Zijlstra , Pekka Enberg , "Zhang, Yanmin" Subject: Re: [PATCH] Properly account for freed pages in free_pages_bulk() and when allocating high-order pages in buffered_rmqueue() In-Reply-To: <20090428103159.GB23540@csn.ul.ie> Message-ID: References: <1240408407-21848-1-git-send-email-mel@csn.ul.ie> <1240819119.2567.884.camel@ymzhang> <20090427143845.GC912@csn.ul.ie> <1240883957.2567.886.camel@ymzhang> <20090428103159.GB23540@csn.ul.ie> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 656 Lines: 19 On Tue, 28 Apr 2009, Mel Gorman wrote: > @@ -1151,6 +1151,7 @@ again: > } else { > spin_lock_irqsave(&zone->lock, flags); > page = __rmqueue(zone, order, migratetype); > + __mod_zone_page_state(zone, NR_FREE_PAGES, -(1UL << order)); > spin_unlock(&zone->lock); > if (!page) > goto failed; __mod_zone_page_state takes an signed integer argument. Not sure what is won by the UL suffix here. -- 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/