Whamcloud - gitweb
LU-6260 llite: add support for new iter functionality
[fs/lustre-release.git] / lustre / llite / vvp_internal.h
index bb5ce79..31aff08 100644 (file)
@@ -47,7 +47,6 @@
 enum obd_notify_event;
 struct inode;
 struct lustre_md;
-struct obd_capa;
 struct obd_device;
 struct obd_export;
 struct page;
@@ -69,8 +68,8 @@ struct vvp_io {
        /**
         * I/O vector information to or from which read/write is going.
         */
-       struct iovec *vui_iov;
-       unsigned long vui_nrsegs;
+       struct iov_iter *vui_iter;
+#ifndef HAVE_FILE_OPERATIONS_READ_WRITE_ITER
        /**
         * Total iov count for left IO.
         */
@@ -79,6 +78,7 @@ struct vvp_io {
         * Old length for iov that was truncated partially.
         */
        size_t vui_iov_olen;
+#endif /* !HAVE_FILE_OPERATIONS_READ_WRITE_ITER */
        /**
         * Total size for the left IO.
         */