From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 14 Aug 2006 15:32:56 +0400 From: Evgeniy Polyakov Subject: Re: [PATCH 1/1] network memory allocator. Message-ID: <20060814113256.GB27132@2ka.mipt.ru> References: <20060814110359.GA27704@2ka.mipt.ru> <20060814.042206.85411651.davem@davemloft.net> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline In-Reply-To: <20060814.042206.85411651.davem@davemloft.net> Sender: owner-linux-mm@kvack.org Return-Path: To: David Miller Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org List-ID: On Mon, Aug 14, 2006 at 04:22:06AM -0700, David Miller (davem@davemloft.net) wrote: > From: Evgeniy Polyakov > Date: Mon, 14 Aug 2006 15:04:03 +0400 > > > /* These elements must be at the end, see alloc_skb() for details. */ > > - unsigned int truesize; > > + unsigned int truesize, __tsize; > > There is no real need for new member. > > > - kfree(skb->head); > > + avl_free(skb->head, skb->__tsize); > > Just use "skb->end - skb->head + sizeof(struct skb_shared_info)" > as the size argument. > > Then, there is no reason for skb->__tsize :-) Oh, my fault - that simple calculation dropped out of my head... -- Evgeniy Polyakov -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org