diff options
Diffstat (limited to 'drivers/block/loop.c')
| -rw-r--r-- | drivers/block/loop.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index 0de11444e317..ef8334949b42 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
| @@ -273,7 +273,7 @@ static int lo_write_bvec(struct file *file, struct bio_vec *bvec, loff_t *ppos) | |||
| 273 | iov_iter_bvec(&i, ITER_BVEC, bvec, 1, bvec->bv_len); | 273 | iov_iter_bvec(&i, ITER_BVEC, bvec, 1, bvec->bv_len); |
| 274 | 274 | ||
| 275 | file_start_write(file); | 275 | file_start_write(file); |
| 276 | bw = vfs_iter_write(file, &i, ppos); | 276 | bw = vfs_iter_write(file, &i, ppos, 0); |
| 277 | file_end_write(file); | 277 | file_end_write(file); |
| 278 | 278 | ||
| 279 | if (likely(bw == bvec->bv_len)) | 279 | if (likely(bw == bvec->bv_len)) |
| @@ -349,7 +349,7 @@ static int lo_read_simple(struct loop_device *lo, struct request *rq, | |||
| 349 | 349 | ||
| 350 | rq_for_each_segment(bvec, rq, iter) { | 350 | rq_for_each_segment(bvec, rq, iter) { |
| 351 | iov_iter_bvec(&i, ITER_BVEC, &bvec, 1, bvec.bv_len); | 351 | iov_iter_bvec(&i, ITER_BVEC, &bvec, 1, bvec.bv_len); |
| 352 | len = vfs_iter_read(lo->lo_backing_file, &i, &pos); | 352 | len = vfs_iter_read(lo->lo_backing_file, &i, &pos, 0); |
| 353 | if (len < 0) | 353 | if (len < 0) |
| 354 | return len; | 354 | return len; |
| 355 | 355 | ||
| @@ -390,7 +390,7 @@ static int lo_read_transfer(struct loop_device *lo, struct request *rq, | |||
| 390 | b.bv_len = bvec.bv_len; | 390 | b.bv_len = bvec.bv_len; |
| 391 | 391 | ||
| 392 | iov_iter_bvec(&i, ITER_BVEC, &b, 1, b.bv_len); | 392 | iov_iter_bvec(&i, ITER_BVEC, &b, 1, b.bv_len); |
| 393 | len = vfs_iter_read(lo->lo_backing_file, &i, &pos); | 393 | len = vfs_iter_read(lo->lo_backing_file, &i, &pos, 0); |
| 394 | if (len < 0) { | 394 | if (len < 0) { |
| 395 | ret = len; | 395 | ret = len; |
| 396 | goto out_free_page; | 396 | goto out_free_page; |
