On Tue, Dec 11, 2012 at 03:37:05PM -0600, Jon Brassow wrote: > if (min_region_size > (1 << 13)) { > + /* region_size must be a power of 2 */ > + for (i = 13; min_region_size > (1 << i); i++); > + > + region_size = (1 << i); Can the loop be replaced with a direct bit calculation, perhaps? Alasdair -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html