diff options
author | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-11-25 19:14:48 +0100 |
---|---|---|
committer | Pekka Enberg <penberg@cs.helsinki.fi> | 2009-11-29 08:01:59 +0100 |
commit | 74e2134ff892ee4ea4fbd52637060b71e540faf1 (patch) | |
tree | a0747c885ca2bc04745a77ef4a902d121acbe44f /Documentation/ABI | |
parent | Linux 2.6.32-rc6 (diff) | |
download | linux-74e2134ff892ee4ea4fbd52637060b71e540faf1.tar.xz linux-74e2134ff892ee4ea4fbd52637060b71e540faf1.zip |
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 <cl@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Diffstat (limited to 'Documentation/ABI')
0 files changed, 0 insertions, 0 deletions