Thread (2 messages) 2 messages, 2 authors, 2014-01-08

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

From: Kent Overstreet <hidden>
Date: 2014-01-08 21:35:43

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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help