On Wed, Jan 08, 2014 at 07:39:28PM +0800, majianpeng wrote: > In func bcache_device_init(),it use this expression to cal nr_stripes: > "d->nr_stripes = DIV_ROUND_UP_ULL(sectors, d->stripe_size)". > But the unit of d->stripe_size is byte,the unit os sectors is sector. > So we should replace sectors with "secotrs << 9". Nope, d->stripe_size is definitely sectors. -- To unsubscribe from this list: send the line "unsubscribe linux-bcache" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html