From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Rientjes Subject: Re: [Bug #13319] Page allocation failures with b43 and p54usb Date: Mon, 27 Jul 2009 15:38:03 -0700 (PDT) Message-ID: References: <4A6CF220.7080605@lwfinger.net> <84144f020907270008h2a985278of68e70ff1ee9265c@mail.gmail.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=google.com; s=beta; t=1248734292; bh=uYSvtPO+I2rC+iKe+bGTDwuuQvQ=; h=DomainKey-Signature:Date:From:X-X-Sender:To:cc:Subject: In-Reply-To:Message-ID:References:User-Agent:MIME-Version: Content-Type:X-System-Of-Record; b=Yjs3l9ANNkdRaSAZ8OFit+C2LWNsoKr YZ3jnAfuxdXBv8KIqMREDNmMh8VZIcvKxeH1kakUngmGgnk13JkOIbg== In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-ID: Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Christoph Lameter Cc: Pekka Enberg , Larry Finger , "Rafael J. Wysocki" , Linux Kernel Mailing List , Kernel Testers List , Johannes Berg On Mon, 27 Jul 2009, Christoph Lameter wrote: > My prosal was to use the size and objsize parameters. You would only have > to call calculate_sizes() twice when the comparison of the order of size > and objsize would be different. > > Doing so would simplify additing future flags. If you do your own > calculations (like in the patch) then you have to replicate the size > calculation from calculate_sizes() somehow. Is the duplicate calculation > really accurate regarding alignment and other special casing? > Ok, fair enough. It seems like a matter of taste in implementation but your proposal is also more extendable than mine, and I'm definitely not going to argue your taste vs. mine when it comes to slub :) I'll write an incremental patch on top of Pekka's for-next branch to implement your idea.