diff options
author | Paul Clements <paul.clements@steeleye.com> | 2006-10-03 10:16:01 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-10-03 17:04:18 +0200 |
commit | a638b2dc951c4cafea31b34a1db1c3d94809649e (patch) | |
tree | 73c1c2135a117290308b5807b6ede21389e3264c /include | |
parent | [PATCH] md: remove 'experimental' classification from raid5 reshape (diff) | |
download | linux-a638b2dc951c4cafea31b34a1db1c3d94809649e.tar.xz linux-a638b2dc951c4cafea31b34a1db1c3d94809649e.zip |
[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 <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions