diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2014-03-05 19:28:09 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-05-06 17:32:49 -0400 |
commit | 71d8e532b1549a478e6a6a8a44f309d050294d00 (patch) | |
tree | 58b40c17cbb806c94aa07121a8b010d16f825d27 /fs/xfs | |
parent | ed978a811ec528dbe40243605c3afab55892f722 (diff) |
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 <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/xfs')
-rw-r--r-- | fs/xfs/xfs_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index f0f8084a67be..762bb3e148a6 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -697,7 +697,7 @@ xfs_file_dio_aio_write( | |||
697 | } | 697 | } |
698 | 698 | ||
699 | trace_xfs_file_direct_write(ip, count, iocb->ki_pos, 0); | 699 | trace_xfs_file_direct_write(ip, count, iocb->ki_pos, 0); |
700 | iov_iter_init(&from, iovp, nr_segs, count, 0); | 700 | iov_iter_init(&from, WRITE, iovp, nr_segs, count); |
701 | ret = generic_file_direct_write(iocb, &from, pos, count, ocount); | 701 | ret = generic_file_direct_write(iocb, &from, pos, count, ocount); |
702 | 702 | ||
703 | out: | 703 | out: |
@@ -731,7 +731,7 @@ xfs_file_buffered_aio_write( | |||
731 | if (ret) | 731 | if (ret) |
732 | goto out; | 732 | goto out; |
733 | 733 | ||
734 | iov_iter_init(&from, iovp, nr_segs, count, 0); | 734 | iov_iter_init(&from, WRITE, iovp, nr_segs, count); |
735 | /* We can write back this queue in page reclaim */ | 735 | /* We can write back this queue in page reclaim */ |
736 | current->backing_dev_info = mapping->backing_dev_info; | 736 | current->backing_dev_info = mapping->backing_dev_info; |
737 | 737 | ||