lightnvm: pblk: remove redundant check on read path
authorJavier González <javier@cnexlabs.com>
Fri, 13 Oct 2017 12:46:24 +0000 (14:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 13 Oct 2017 14:34:57 +0000 (08:34 -0600)
commit0f9248cf1e22333b2a0458540aafb1ad3b2b3337
treed55104aad57bc9ac37717f4237c12a99c6095ba8
parent7bd4d370db6090004a06deb526f0f01fa99a3f9f
lightnvm: pblk: remove redundant check on read path

A partial read I/O in pblk is an I/O where some sectors reside in the
write buffer in main memory and some are persisted on the device. Such
an I/O must at least contain 2 lbas, therefore checking for the case
where a single lba is mapped is not necessary.

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-read.c