OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 2/2] Eliminate unused argument from sk_stream_alloc_pskb
Re: [PATCH 2/2] Eliminate unused argument from sk_stream_alloc_pskb [message #23958 is a reply to message #23780] Thu, 29 November 2007 10:23 Go to previous message
Herbert Xu is currently offline  Herbert Xu
Messages: 45
Registered: April 2007
Member
On Mon, Nov 26, 2007 at 08:17:27PM +0300, Pavel Emelyanov wrote:
> The 3rd argument is always zero (according to grep :) Eliminate
> it and merge the function with sk_stream_alloc_skb.
> 
> This saves 44 more bytes, and together with the previous patch
> we have:
> 
> add/remove: 1/0 grow/shrink: 0/8 up/down: 183/-751 (-568)
> function                                     old     new   delta
> sk_stream_alloc_skb                            -     183    +183
> ip_rt_init                                   529     525      -4
> arp_ignore                                   112     107      -5
> __inet_lookup_listener                       284     274     -10
> tcp_sendmsg                                 2583    2481    -102
> tcp_sendpage                                1449    1300    -149
> tso_fragment                                 417     258    -159
> tcp_fragment                                1149     988    -161
> __tcp_push_pending_frames                   1998    1837    -161

Also applied to net-2.6.25.  Thanks.

> Question: is this 2.6.24 material (good space saving) or should I
> rework this against 2.6.25 (it applies with fuzzes, but seems to
> compile)?

I guess I've answered this question :)

Cheers,
-- 
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
 
Read Message
Read Message
Previous Topic: [PATCH 1/2] Uninline the sk_stream_alloc_pskb
Next Topic: kernel/cpt/cpt_dump.c breakage in 2.6.22?
Goto Forum:
  


Current Time: Mon Aug 25 18:33:16 GMT 2025

Total time taken to generate the page: 0.07281 seconds