diff options
author | Wenwei Tao <ww.tao0320@gmail.com> | 2016-05-06 21:03:01 +0300 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-06 21:51:10 +0300 |
commit | 909049a7199947abbc6a923e4cf5cff1857d4205 (patch) | |
tree | 01fc1e96698bbeb8f473a20c88f9fea0b6a8b7b7 /drivers/md/dm-io.c | |
parent | 66e3d07f75c6472d7198920488330634c118b255 (diff) | |
download | linux-909049a7199947abbc6a923e4cf5cff1857d4205.tar.xz |
lightnvm: store rrpc->soffset in device sector size
Since we mainly use soffset in device sector size, we therefore store
this value in rrpc->soffset, instead of the offset in 512byte sector
size. This eliminates the "(ilog2(dev->sec_size) - 9)" calculation on
each I/O.
Signed-off-by: Wenwei Tao <ww.tao0320@gmail.com>
Updated patch description.
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'drivers/md/dm-io.c')
0 files changed, 0 insertions, 0 deletions