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

highmem: use bio_has_data() in the bounce path

Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 051cc395
...@@ -267,7 +267,7 @@ void blk_queue_bounce(struct request_queue *q, struct bio **bio_orig) ...@@ -267,7 +267,7 @@ void blk_queue_bounce(struct request_queue *q, struct bio **bio_orig)
/* /*
* Data-less bio, nothing to bounce * Data-less bio, nothing to bounce
*/ */
if (bio_empty_barrier(*bio_orig)) if (!bio_has_data(*bio_orig))
return; return;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册