]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: pblk: refactor read path on GC
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:15 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commitc1cea10286db615bbb45fa1a8f5a0ba3bd3bb073
tree7d1d992b89336729a50b63cbeb38b204493a7da9
parent43b53bd453280a37ac887fc7a24df17d4dcc1e14
lightnvm: pblk: refactor read path on GC

Simplify the part of the garbage collector where data is read from the
line being recycled and moved into an internal queue before being copied
to the memory buffer. This allows to get rid of a dedicated function,
which introduces an unnecessary dependency on the code.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-gc.c