sd: factor out a sd_set_special_bvec helper
authorChristoph Hellwig <hch@lst.de>
Fri, 3 Feb 2023 15:06:15 +0000 (16:06 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 3 Feb 2023 15:20:55 +0000 (08:20 -0700)
commitf1e117cbb01a38f764db2f292174b93eab7c2db2
tree02e895dd1fba24438193777db6d5a7abb971ca1c
parent666e6550cb74e3a7206b5699409c9f31e123887e
sd: factor out a sd_set_special_bvec helper

Add a helper for setting up the special_bvec instead of open coding it
in three place, and use the new bvec_set_page helper to initialize
special_vec.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Link: https://lore.kernel.org/r/20230203150634.3199647-5-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/scsi/sd.c