Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934828AbYCFQlr (ORCPT ); Thu, 6 Mar 2008 11:41:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1762015AbYCFQla (ORCPT ); Thu, 6 Mar 2008 11:41:30 -0500 Received: from netops-testserver-3-out.sgi.com ([192.48.171.28]:46760 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752119AbYCFQl3 (ORCPT ); Thu, 6 Mar 2008 11:41:29 -0500 Date: Thu, 6 Mar 2008 08:41:14 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: Pekka J Enberg cc: Patrick McHardy , Netfilter Development Mailinglist , joe@perches.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, Netfilter Development Mailinglist Subject: Re: [PATCH] netfilter: replace horrible hack with ksize() In-Reply-To: Message-ID: References: <47CFF9B7.5060803@trash.net> 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: 526 Lines: 12 On Thu, 6 Mar 2008, Pekka J Enberg wrote: > Then ksize(p) will return the currently allocated size which is 32 bytes > when page size is 4 KB, and not 8 bytes. So it should be equivalent of > what the current code does. True for SLAB. SLUB will actually allocate only 8 bytes. -- 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/