]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite65e2fd99253662c3abbbc19a1d76e8b99fe25ac
treed55104aad57bc9ac37717f4237c12a99c6095ba8
parentc6fc948bb3dd13a115e1a4d9714e556a5cf1c7f5
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