Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755396Ab2JPAxU (ORCPT ); Mon, 15 Oct 2012 20:53:20 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:64941 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751679Ab2JPAxS (ORCPT ); Mon, 15 Oct 2012 20:53:18 -0400 Date: Mon, 15 Oct 2012 17:53:16 -0700 (PDT) From: David Rientjes X-X-Sender: rientjes@chino.kir.corp.google.com To: Christoph Lameter cc: Richard Kennedy , Pekka Enberg , Matt Mackall , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] SLUB: remove hard coded magic numbers from resiliency_test In-Reply-To: <0000013a66294083-76b27acc-ede7-45d7-849a-0932adecac14-000000@email.amazonses.com> Message-ID: References: <1350145885-6099-1-git-send-email-richard@rsk.demon.co.uk> <1350145885-6099-2-git-send-email-richard@rsk.demon.co.uk> <0000013a66294083-76b27acc-ede7-45d7-849a-0932adecac14-000000@email.amazonses.com> User-Agent: Alpine 2.00 (DEB 1167 2008-08-23) 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: 550 Lines: 15 On Mon, 15 Oct 2012, Christoph Lameter wrote: > > Use the always inlined function kmalloc_index to translate > > sizes to indexes, so that we don't have to have the slab indexes > > hard coded in two places. > > Acked-by: Christoph Lameter > Shouldn't this be using get_slab() instead? -- 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/