Paul Clements
a638b2dc95
[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>
2006-10-03 08:04:18 -07:00
..
2005-09-17 11:49:58 -07:00
2006-01-01 22:21:50 +01:00
2006-10-03 08:04:18 -07:00
2005-11-22 09:14:31 -08:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:04:16 -07:00
2006-09-30 20:23:37 +02:00
2006-10-03 08:04:14 -07:00
2006-03-24 18:36:27 +01:00
2005-04-16 15:20:36 -07:00
2006-03-26 08:56:59 -08:00
2006-01-06 08:34:00 -08:00
2006-06-26 12:25:08 -07:00
2006-10-03 08:04:13 -07:00
2006-06-26 09:58:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:04:15 -07:00
2005-04-16 15:20:36 -07:00
2006-03-26 18:21:58 +02:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:04:15 -07:00
2006-06-26 09:58:36 -07:00
2006-10-03 08:04:15 -07:00
2006-10-03 08:04:14 -07:00
2006-06-26 09:58:36 -07:00
2006-10-03 08:04:16 -07:00
2006-06-26 09:58:36 -07:00
2006-06-26 09:58:36 -07:00
2006-10-03 08:04:16 -07:00
2006-10-03 08:04:15 -07:00
2006-01-06 08:34:09 -08:00
2006-10-03 08:04:18 -07:00
2006-06-30 19:25:36 +02:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:04:18 -07:00
2006-06-26 09:58:37 -07:00
2006-10-03 08:04:18 -07:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:04:18 -07:00
2006-10-03 08:04:18 -07:00
2006-10-03 08:04:18 -07:00
2006-10-03 08:04:18 -07:00
2005-09-17 11:49:58 -07:00
2006-06-23 07:43:08 -07:00
2005-09-17 11:49:58 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2006-10-03 08:04:18 -07:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00