From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754320AbZDUGAe (ORCPT ); Tue, 21 Apr 2009 02:00:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754067AbZDUGAG (ORCPT ); Tue, 21 Apr 2009 02:00:06 -0400 Received: from courier.cs.helsinki.fi ([128.214.9.1]:38949 "EHLO mail.cs.helsinki.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753169AbZDUGAF (ORCPT ); Tue, 21 Apr 2009 02:00:05 -0400 Message-ID: <49ED5FEE.1060505@cs.helsinki.fi> Date: Tue, 21 Apr 2009 08:55:58 +0300 From: Pekka Enberg User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: Mel Gorman CC: Linux Memory Management List , KOSAKI Motohiro , Christoph Lameter , Nick Piggin , Linux Kernel Mailing List , Lin Ming , Zhang Yanmin , Peter Zijlstra , Andrew Morton Subject: Re: [PATCH 02/25] Do not sanity check order in the fast path References: <1240266011-11140-1-git-send-email-mel@csn.ul.ie> <1240266011-11140-3-git-send-email-mel@csn.ul.ie> In-Reply-To: <1240266011-11140-3-git-send-email-mel@csn.ul.ie> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Mel Gorman wrote: > No user of the allocator API should be passing in an order >= MAX_ORDER > but we check for it on each and every allocation. Delete this check and > make it a VM_BUG_ON check further down the call path. > > Signed-off-by: Mel Gorman > Reviewed-by: Christoph Lameter Reviewed-by: Pekka Enberg