From: Paul Clements Date: Tue, 3 Oct 2006 08:16:01 +0000 (-0700) Subject: [PATCH] md: use ffz instead of find_first_set to convert multiplier to shift X-Git-Tag: v2.6.19-rc1~235 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a638b2dc951c4cafea31b34a1db1c3d94809649e;p=pandora-kernel.git [PATCH] md: use ffz instead of find_first_set to convert multiplier to shift find_first_set doesn't find the least-significant bit on bigendian machines, so it is really wrong to use it. ffs is closer, but takes an 'int' and we have a 'unsigned long'. So use ffz(~X) to convert a chunksize into a chunkshift. Signed-off-by: Neil Brown Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed