From: Pekka Enberg Date: Wed, 25 Nov 2009 18:14:48 +0000 (+0200) Subject: SLUB: Fix __GFP_ZERO unlikely() annotation X-Git-Tag: v2.6.33-rc1~297^2^4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74e2134ff892ee4ea4fbd52637060b71e540faf1;p=pandora-kernel.git SLUB: Fix __GFP_ZERO unlikely() annotation The unlikely() annotation in slab_alloc() covers too much of the expression. It's actually very likely that the object is not NULL so use unlikely() only for the __GFP_ZERO expression like SLAB does. The patch reduces kernel text by 29 bytes on x86-64: text data bss dec hex filename 24185 8560 176 32921 8099 mm/slub.o.orig 24156 8560 176 32892 807c mm/slub.o Acked-by: Christoph Lameter Signed-off-by: Pekka Enberg --- Reading git-diff-tree failed