diff options
| -rw-r--r-- | block/bio.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/block/bio.c b/block/bio.c index 4f4d9884443b..4d86e90654b2 100644 --- a/block/bio.c +++ b/block/bio.c | |||
| @@ -1261,7 +1261,8 @@ struct bio *bio_copy_user_iov(struct request_queue *q, | |||
| 1261 | if (ret) | 1261 | if (ret) |
| 1262 | goto cleanup; | 1262 | goto cleanup; |
| 1263 | } else { | 1263 | } else { |
| 1264 | zero_fill_bio(bio); | 1264 | if (bmd->is_our_pages) |
| 1265 | zero_fill_bio(bio); | ||
| 1265 | iov_iter_advance(iter, bio->bi_iter.bi_size); | 1266 | iov_iter_advance(iter, bio->bi_iter.bi_size); |
| 1266 | } | 1267 | } |
| 1267 | 1268 | ||
