]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
lightnvm: make ppa_list const in nvm_set_rqd_list
authorMatias Bjørling <m@bjorling.me>
Thu, 7 Jul 2016 07:54:22 +0000 (09:54 +0200)
committerJens Axboe <axboe@fb.com>
Thu, 7 Jul 2016 14:51:52 +0000 (08:51 -0600)
commit8680f165eaa56cc9812d7d9b4903f449df0f6a45
tree78a0e8a717942fb26dacae7ba44275ff58e289fa
parent24d4a7d721484498462bc3117d6d5c88ca623574
lightnvm: make ppa_list const in nvm_set_rqd_list

The passed by reference ppa list in nvm_set_rqd_list() is updated when
multiple planes are available. In that case, each PPA plane is
incremented when the device side PPA list is created. This prevents the
caller to rely on the PPA list to be unmodified after a call.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
include/linux/lightnvm.h