diff options
author | Wenwei Tao <ww.tao0320@gmail.com> | 2016-05-06 20:03:00 +0200 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-05-06 20:51:10 +0200 |
commit | 66e3d07f75c6472d7198920488330634c118b255 (patch) | |
tree | 21054b481154bd7e0a1250023f7051eef3f0bb3a /block/cfq-iosched.c | |
parent | lightnvm: avoid memory leak when lun_map kcalloc fails (diff) | |
download | linux-66e3d07f75c6472d7198920488330634c118b255.tar.xz linux-66e3d07f75c6472d7198920488330634c118b255.zip |
lightnvm: calculate rrpc total blocks and sectors up front
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 <ww.tao0320@gmail.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'block/cfq-iosched.c')
0 files changed, 0 insertions, 0 deletions