git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
14f50b4
)
[PATCH] md: use ffz instead of find_first_set to convert multiplier to shift
author
Paul Clements
<paul.clements@steeleye.com>
Tue, 3 Oct 2006 08:16:01 +0000
(
01:16
-0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Tue, 3 Oct 2006 15:04:18 +0000
(08:04 -0700)
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>
No differences found