lightnvm: refactor rqd ppa list into set/free
authorMatias Bjørling <m@bjorling.me>
Tue, 12 Jan 2016 06:49:20 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:16 +0000 (08:21 -0700)
commitabd805ec9f51f37db9da63dda44c3f4b4ae8ad57
tree5298213b1795db79ebd1769e0d2c66b865d71e5a
parent069368e91879a3a640cfae4bdc1f9f8cc99c93a0
lightnvm: refactor rqd ppa list into set/free

A device may be driven in single, double or quad plane mode. In that
case, the rqd must have either one, two, or four PPAs set for a single
PPA sent to the device. Refactor this logic into their own
functions to be shared by program/erase/read in the core.

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