lustre: get rid of messing with iovecs
authorAl Viro <viro@zeniv.linux.org.uk>
Fri, 4 Apr 2014 16:15:19 +0000 (12:15 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Tue, 6 May 2014 21:39:44 +0000 (17:39 -0400)
commitb42b15fdad3ebb790250041d1517acebb9bd56d9
treedd273391e1cf117a0e5356c3b84aac6c5549deae
parent4908b822b300d2d7ad0341203181cfbd8a91092a
lustre: get rid of messing with iovecs

* switch to ->read_iter/->write_iter
* keep a pointer to iov_iter instead of iov/nr_segs
* do not modify iovecs; use iov_iter_truncate()/iov_iter_advance() and
a new primitive - iov_iter_reexpand() (expand previously truncated
iterator) istead.
* (racy) check for lustre VMAs intersecting with iovecs kept for now as
for_each_iov() loop.

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
drivers/staging/lustre/lustre/include/lclient.h
drivers/staging/lustre/lustre/lclient/lcommon_cl.c
drivers/staging/lustre/lustre/llite/file.c
drivers/staging/lustre/lustre/llite/llite_internal.h
drivers/staging/lustre/lustre/llite/rw.c
drivers/staging/lustre/lustre/llite/vvp_io.c
include/linux/uio.h