Herbert Xu f945fa7ad9 [INET]: Fix truesize setting in ip_append_data
As it is ip_append_data only counts page fragments to the skb that
allocated it.  As such it means that the first skb gets hit with a
4K charge even though it might have only used a fraction of it while
all subsequent skb's that use the same page gets away with no charge
at all.

This bug was exposed by the UDP accounting patch.

[ The wmem_alloc bumping needs to be moved with the truesize,
  noticed by Takahiro Yasui.  -DaveM ]

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
2008-01-23 03:11:43 -08:00
..
2007-12-20 13:59:39 -08:00
2008-01-20 20:31:42 -08:00
2007-12-20 14:03:11 -08:00
2007-12-07 04:31:47 -08:00
2007-12-20 14:02:40 -08:00
2007-12-14 13:54:37 -08:00
2008-01-04 00:47:02 -08:00
2005-04-16 15:20:36 -07:00