mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
start adding the tag to iov_iter
For now, just use the same thing we pass to ->direct_IO() - it's all iovec-based at the moment. Pass it explicitly to iov_iter_init() and account for kvec vs. iovec in there, by the same kludge NFS ->direct_IO() uses. Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
ed978a811e
commit
71d8e532b1
15 changed files with 41 additions and 35 deletions
|
|
@ -1217,7 +1217,7 @@ static ssize_t fuse_file_aio_write(struct kiocb *iocb, const struct iovec *iov,
|
|||
err = generic_write_checks(file, &pos, &count, S_ISBLK(inode->i_mode));
|
||||
if (err)
|
||||
goto out;
|
||||
iov_iter_init(&i, iov, nr_segs, count, 0);
|
||||
iov_iter_init(&i, WRITE, iov, nr_segs, count);
|
||||
|
||||
if (count == 0)
|
||||
goto out;
|
||||
|
|
@ -1386,7 +1386,7 @@ ssize_t fuse_direct_io(struct fuse_io_priv *io, const struct iovec *iov,
|
|||
struct fuse_req *req;
|
||||
struct iov_iter ii;
|
||||
|
||||
iov_iter_init(&ii, iov, nr_segs, count, 0);
|
||||
iov_iter_init(&ii, write ? WRITE : READ, iov, nr_segs, count);
|
||||
|
||||
if (io->async)
|
||||
req = fuse_get_req_for_background(fc, fuse_iter_npages(&ii));
|
||||
|
|
@ -2367,7 +2367,7 @@ static int fuse_ioctl_copy_user(struct page **pages, struct iovec *iov,
|
|||
if (!bytes)
|
||||
return 0;
|
||||
|
||||
iov_iter_init(&ii, iov, nr_segs, bytes, 0);
|
||||
iov_iter_init(&ii, to_user ? READ : WRITE, iov, nr_segs, bytes);
|
||||
|
||||
while (iov_iter_count(&ii)) {
|
||||
struct page *page = pages[page_idx++];
|
||||
|
|
|
|||
Loading…
Reference in a new issue