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-11-02 08:47:06 +01:00
2007-12-19 23:38:11 -08:00
2008-01-08 23:30:18 -08:00
2007-10-15 12:26:35 -07:00
2007-10-15 12:26:35 -07:00
2007-10-20 01:34:40 +02:00
2007-04-25 22:28:20 -07:00
2007-10-10 16:48:31 -07:00