nvmet: Introduce nvmet_dsm_len() helper
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Oct 2019 16:35:43 +0000 (10:35 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 4 Nov 2019 17:56:42 +0000 (10:56 -0700)
commit59ef0eaa7741c3543f98220cc132c61bf0230bce
tree85452eca466c75c08adf77873130485fbe3705de
parent6f86f2c9d94d55c4d3a6f1ffbc2e1115b5cb38a8
nvmet: Introduce nvmet_dsm_len() helper

Similar to the nvmet_rw_len helper.

Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
[split patch, update changelog]
Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/io-cmd-file.c
drivers/nvme/target/nvmet.h