]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit289f7379e6957039f3a79f1b893feec0d334077d
tree5298213b1795db79ebd1769e0d2c66b865d71e5a
parent769b8a21f69c3e48e7f1a50f8dd05c80d88accf6
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