Re: [PATCH 3/3] bcache: Fix the bug about cal nr_stripes of backed device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM Kernel]     [Linux Filesystem Development]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux