]> git.baikalelectronics.ru Git - kernel.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)
commit9665c858d4c0b2377c857c130f1d10ac258c3783
tree78a0e8a717942fb26dacae7ba44275ff58e289fa
parent178a8427f45cea59aee54a729f80b538bb1d4a8c
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