From: Satyam Sharma Date: Tue, 16 Oct 2007 08:24:44 +0000 (-0700) Subject: {slub, slob}: use unlikely() for kfree(ZERO_OR_NULL_PTR) check X-Git-Tag: v2.6.24-rc1~1220 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2408c55037c3f7d51a8a100025c47595e71b838c;p=pandora-kernel.git {slub, slob}: use unlikely() for kfree(ZERO_OR_NULL_PTR) check Considering kfree(NULL) would normally occur only in error paths and kfree(ZERO_SIZE_PTR) is uncommon as well, so let's use unlikely() for the condition check in SLUB's and SLOB's kfree() to optimize for the common case. SLAB has this already. Signed-off-by: Satyam Sharma Cc: Pekka Enberg Cc: Christoph Lameter Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed