提交 ad0d4083 编写于 作者: J Jens Axboe

[BLOCK] Don't clear sg_dma_len/addr() in blk_rq_map_sg()

It's not a proper lvalue on all archs.
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 73fc4f0d
......@@ -1354,8 +1354,6 @@ int blk_rq_map_sg(struct request_queue *q, struct request *rq,
else
sg = sg_next(sg);
sg_dma_len(sg) = 0;
sg_dma_address(sg) = 0;
sg_set_page(sg, bvec->bv_page);
sg->length = nbytes;
sg->offset = bvec->bv_offset;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册