From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756823AbZBWQ27 (ORCPT ); Mon, 23 Feb 2009 11:28:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753321AbZBWQ2u (ORCPT ); Mon, 23 Feb 2009 11:28:50 -0500 Received: from smtp3.ultrahosting.com ([74.213.175.254]:35596 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753073AbZBWQ2u (ORCPT ); Mon, 23 Feb 2009 11:28:50 -0500 Date: Mon, 23 Feb 2009 11:20:34 -0500 (EST) From: Christoph Lameter X-X-Sender: cl@qirst.com To: David Rientjes cc: Pekka Enberg , linux-kernel@vger.kernel.org Subject: Re: [patch 1/2] slub: move min_partial to struct kmem_cach In-Reply-To: Message-ID: References: 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 On Mon, 23 Feb 2009, David Rientjes wrote: > > Move the ilog2 use into calculate_min_partial()? Otherweise > > calculate_min_partial is merely enforcing limits and not doing any > > calculations. > > > > The second patch in this series as a /sys/kernel/slab/cache/min_partial > tunable that uses calculate_min_partial() to enforce a sane range, so > while it may not actually be doing any calculations, the ilog2() is > appropriately placed in kmem_cache_open(). We don't want to be taking the > log of the user's min_partial value. Then Rename the function to set_min_partial()?