From: Pavel Emelyanov Date: Tue, 20 Nov 2007 07:20:59 +0000 (-0800) Subject: [NET]: Compact sk_stream_mem_schedule() code X-Git-Tag: v2.6.25-rc1~1162^2~1376 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9859a79023d71dd4e56c195a345abc4112abfd02;p=pandora-kernel.git [NET]: Compact sk_stream_mem_schedule() code This function references sk->sk_prot->xxx for many times. It turned out, that there's so many code in it, that gcc cannot always optimize access to sk->sk_prot's fields. After saving the sk->sk_prot on the stack and comparing disassembled code, it turned out that the function became ~10 bytes shorter and made less dereferences (on i386 and x86_64). Stack consumption didn't grow. Besides, this patch drives most of this function into the 80 columns limit. Signed-off-by: Pavel Emelyanov Acked-by: Arnaldo Carvalho de Melo Signed-off-by: David S. Miller --- Reading git-diff-tree failed