orangefs: make wait_for_direct_io() take iov_iter
authorAl Viro <viro@zeniv.linux.org.uk>
Thu, 8 Oct 2015 22:00:26 +0000 (18:00 -0400)
committerMike Marshall <hubcap@omnibond.com>
Fri, 13 Nov 2015 16:21:37 +0000 (11:21 -0500)
commit3c2fcfcb6858585e9df6c7832464ab28bfb5bb6b
tree1c35be5e310aab0502a29141ed00315173bf238b
parenta5c126a52269ce304b6da95e980e595668bf467d
orangefs: make wait_for_direct_io() take iov_iter

incidentally, insane or compromised server returning *more* than
requested on read should not oops the kernel - initialize the
iov_iter for read according to the iovec we've got.  That's why
pvfs_bufmap_copy_to_iovec() needed a separate size argument - we
shouldn't abuse iov_iter_count(iter) for passing that.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Mike Marshall <hubcap@omnibond.com>
fs/orangefs/file.c