Commit e5eb7f20 authored by Lachlan McIlroy's avatar Lachlan McIlroy Committed by Tim Shimmin

[XFS] use struct kvec in struct uio

SGI-PV: 954580
SGI-Modid: xfs-linux-melb:xfs-kern:27701a
Signed-off-by: default avatarLachlan McIlroy <lachlan@sgi.com>
Signed-off-by: default avatarChristoph Hellwig <hch@infradead.org>
Signed-off-by: default avatarTim Shimmin <tes@sgi.com>
parent 03135cf7
...@@ -388,7 +388,7 @@ xfs_readlink_by_handle( ...@@ -388,7 +388,7 @@ xfs_readlink_by_handle(
aiov.iov_len = olen; aiov.iov_len = olen;
aiov.iov_base = hreq.ohandle; aiov.iov_base = hreq.ohandle;
auio.uio_iov = &aiov; auio.uio_iov = (struct kvec *)&aiov;
auio.uio_iovcnt = 1; auio.uio_iovcnt = 1;
auio.uio_offset = 0; auio.uio_offset = 0;
auio.uio_segflg = UIO_USERSPACE; auio.uio_segflg = UIO_USERSPACE;
......
...@@ -55,7 +55,7 @@ enum uio_seg { ...@@ -55,7 +55,7 @@ enum uio_seg {
}; };
struct uio { struct uio {
struct iovec *uio_iov; /* pointer to array of iovecs */ struct kvec *uio_iov; /* pointer to array of iovecs */
int uio_iovcnt; /* number of iovecs in array */ int uio_iovcnt; /* number of iovecs in array */
xfs_off_t uio_offset; /* offset in file this uio corresponds to */ xfs_off_t uio_offset; /* offset in file this uio corresponds to */
int uio_resid; /* residual i/o count */ int uio_resid; /* residual i/o count */
...@@ -63,7 +63,7 @@ struct uio { ...@@ -63,7 +63,7 @@ struct uio {
}; };
typedef struct uio uio_t; typedef struct uio uio_t;
typedef struct iovec iovec_t; typedef struct kvec iovec_t;
extern int xfs_uio_read (caddr_t, size_t, uio_t *); extern int xfs_uio_read (caddr_t, size_t, uio_t *);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment