nvmet: Fix nvmet_execute_write_zeroes sector count
authorRodrigo R. Galvao <rosattig@linux.vnet.ibm.com>
Thu, 12 Apr 2018 15:16:11 +0000 (09:16 -0600)
committerJens Axboe <axboe@kernel.dk>
Thu, 12 Apr 2018 15:58:27 +0000 (09:58 -0600)
commit543c09c89fdc007c2990aa9d2abcc62e0dfa1311
treef015c73f3222a87bebda4608b18be8fc09d8b159
parent22b5560195bd66bc43359b71821dc78cc9de56c6
nvmet: Fix nvmet_execute_write_zeroes sector count

We have to increment the number of logical blocks to a 1's based value
in the native format prior to converting to 512b units.

Signed-off-by: Rodrigo R. Galvao <rosattig@linux.vnet.ibm.com>
[changelog]
Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/io-cmd.c