diff options
author | Christoph Hellwig <hch@lst.de> | 2021-08-04 11:56:29 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2021-08-16 18:50:33 +0200 |
commit | c3c770563510aa66fd8e84b374daf43e236fa4ba (patch) | |
tree | 8c353ac0f492b3e1a9f521ec6d24e2b5dbca347d /drivers/scsi/sd.c | |
parent | bcache: use bvec_virt (diff) | |
download | linux-c3c770563510aa66fd8e84b374daf43e236fa4ba.tar.xz linux-c3c770563510aa66fd8e84b374daf43e236fa4ba.zip |
sd: use bvec_virt
Use bvec_virt instead of open coding it.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Acked-by: Martin K. Petersen <martin.petersen@oracle.com>
Link: https://lore.kernel.org/r/20210804095634.460779-11-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index b8d55af763f9..5b5b8266e142 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -886,7 +886,7 @@ static blk_status_t sd_setup_unmap_cmnd(struct scsi_cmnd *cmd) cmd->cmnd[0] = UNMAP; cmd->cmnd[8] = 24; - buf = page_address(rq->special_vec.bv_page); + buf = bvec_virt(&rq->special_vec); put_unaligned_be16(6 + 16, &buf[0]); put_unaligned_be16(16, &buf[2]); put_unaligned_be64(lba, &buf[8]); |