Re: [PATCH 2/3] lightnvm: store rrpc soffset in device sector size instead of 512

2016-04-16 Thread Matias Bjørling
On 04/13/2016 10:27 AM, Wenwei Tao wrote: > Since we mainly use soffset in device sector size, we store > that value in rrpc->soffset to reduce doing "(ilog2(dev->sec_size) - 9)". > > Signed-off-by: Wenwei Tao > --- > drivers/lightnvm/rrpc.c | 17 ++--- > 1

Re: [PATCH 2/3] lightnvm: store rrpc soffset in device sector size instead of 512

2016-04-16 Thread Matias Bjørling
On 04/13/2016 10:27 AM, Wenwei Tao wrote: > Since we mainly use soffset in device sector size, we store > that value in rrpc->soffset to reduce doing "(ilog2(dev->sec_size) - 9)". > > Signed-off-by: Wenwei Tao > --- > drivers/lightnvm/rrpc.c | 17 ++--- > 1 file changed, 10

[PATCH 2/3] lightnvm: store rrpc soffset in device sector size instead of 512

2016-04-13 Thread Wenwei Tao
Since we mainly use soffset in device sector size, we store that value in rrpc->soffset to reduce doing "(ilog2(dev->sec_size) - 9)". Signed-off-by: Wenwei Tao --- drivers/lightnvm/rrpc.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git

[PATCH 2/3] lightnvm: store rrpc soffset in device sector size instead of 512

2016-04-13 Thread Wenwei Tao
Since we mainly use soffset in device sector size, we store that value in rrpc->soffset to reduce doing "(ilog2(dev->sec_size) - 9)". Signed-off-by: Wenwei Tao --- drivers/lightnvm/rrpc.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git