From: Benjamin LaHaise Date: Wed, 1 Feb 2006 11:05:30 +0000 (-0800) Subject: [PATCH] Use 32 bit division in slab_put_obj() X-Git-Tag: v2.6.16-rc2~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9884fd8df195fe48d4e1be2279b419be96127cae;p=pandora-kernel.git [PATCH] Use 32 bit division in slab_put_obj() Improve the performance of slab_put_obj(). Without the cast, gcc considers ptrdiff_t a 64 bit signed integer and ends up emitting code to use a full signed 128 bit divide on EM64T, which is substantially slower than a 32 bit unsigned divide. I noticed this when looking at the profile of a case where the slab balance is just on edge and thrashes back and forth freeing a block. Signed-off-by: Benjamin LaHaise Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed