nvmet: use bvec_set_page to initialize bvecs
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Feb 2023 15:06:17 +0000 (16:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Feb 2023 15:20:55 +0000 (08:20 -0700)
commitfc41c97a3a7b08131e6998bc7692f95729f9d359
treef650fa5b7a2fac87751faae7648f35e8de7d5121
parent3c7ebe952fefb646c56b60f1c3e3388f3b938cc7
nvmet: use bvec_set_page to initialize bvecs

Use the bvec_set_page helper to initialize bvecs.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Link: https://lore.kernel.org/r/20230203150634.3199647-7-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/target/io-cmd-file.c
drivers/nvme/target/tcp.c