Re: [PATCH 1/1] network memory allocator.
From: David Miller <davem@davemloft.net>
Date: 2006-08-14 11:22:10
Also in:
lkml, netdev
From: David Miller <davem@davemloft.net>
Date: 2006-08-14 11:22:10
Also in:
lkml, netdev
/* 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 :-) -- 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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>