Re: [PATCH 1/3] lightnvm: calculate rrpc total blocks and sectors up front

2016-04-16 Thread Matias Bjørling
On 04/13/2016 10:27 AM, Wenwei Tao wrote: > Calculate rrpc total blocks and sectors up front, make sense > to use them. For example, we use rrpc->nr_sects to calculate rrpc > area size, but it makes no sense if we don't initialize it up front, > since it would be zero until we finish rrpc luns

Re: [PATCH 1/3] lightnvm: calculate rrpc total blocks and sectors up front

2016-04-16 Thread Matias Bjørling
On 04/13/2016 10:27 AM, Wenwei Tao wrote: > Calculate rrpc total blocks and sectors up front, make sense > to use them. For example, we use rrpc->nr_sects to calculate rrpc > area size, but it makes no sense if we don't initialize it up front, > since it would be zero until we finish rrpc luns

[PATCH 1/3] lightnvm: calculate rrpc total blocks and sectors up front

2016-04-13 Thread Wenwei Tao
Calculate rrpc total blocks and sectors up front, make sense to use them. For example, we use rrpc->nr_sects to calculate rrpc area size, but it makes no sense if we don't initialize it up front, since it would be zero until we finish rrpc luns init. Signed-off-by: Wenwei Tao

[PATCH 1/3] lightnvm: calculate rrpc total blocks and sectors up front

2016-04-13 Thread Wenwei Tao
Calculate rrpc total blocks and sectors up front, make sense to use them. For example, we use rrpc->nr_sects to calculate rrpc area size, but it makes no sense if we don't initialize it up front, since it would be zero until we finish rrpc luns init. Signed-off-by: Wenwei Tao ---