diff options
author | Ming Lin <ming.l@ssi.samsung.com> | 2016-03-22 00:24:44 -0700 |
---|---|---|
committer | Jens Axboe <axboe@fb.com> | 2016-04-12 13:13:23 -0600 |
commit | 37e58237a16b94fcd2c2d1b7e9c6e1ca661c231b (patch) | |
tree | 0225607142a78e0f110831626c033386e3c1694c /drivers/scsi/sd.c | |
parent | 81b76485afb54e3efeb1de5edbef761f4ad2830e (diff) | |
download | lwn-37e58237a16b94fcd2c2d1b7e9c6e1ca661c231b.tar.gz lwn-37e58237a16b94fcd2c2d1b7e9c6e1ca661c231b.zip |
block: add offset in blk_add_request_payload()
We could kmalloc() the payload, so need the offset in page.
Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
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 f52b74cf8d1e..69b0a4a7a15f 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -779,7 +779,7 @@ static int sd_setup_discard_cmnd(struct scsi_cmnd *cmd) * discarded on disk. This allows us to report completion on the full * amount of blocks described by the request. */ - blk_add_request_payload(rq, page, len); + blk_add_request_payload(rq, page, 0, len); ret = scsi_init_io(cmd); rq->__data_len = nr_bytes; |