Skip to content

Commit

Permalink
[XFS] use struct kvec in struct uio
Browse files Browse the repository at this point in the history
SGI-PV: 954580
SGI-Modid: xfs-linux-melb:xfs-kern:27701a

Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Tim Shimmin <tes@sgi.com>
  • Loading branch information
Lachlan McIlroy authored and Tim Shimmin committed Feb 10, 2007
1 parent 03135cf commit e5eb7f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion fs/xfs/linux-2.6/xfs_ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ xfs_readlink_by_handle(
aiov.iov_len = olen;
aiov.iov_base = hreq.ohandle;

auio.uio_iov = &aiov;
auio.uio_iov = (struct kvec *)&aiov;
auio.uio_iovcnt = 1;
auio.uio_offset = 0;
auio.uio_segflg = UIO_USERSPACE;
Expand Down
4 changes: 2 additions & 2 deletions fs/xfs/support/move.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ enum uio_seg {
};

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 */
xfs_off_t uio_offset; /* offset in file this uio corresponds to */
int uio_resid; /* residual i/o count */
enum uio_seg uio_segflg; /* see above */
};

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 *);

Expand Down

0 comments on commit e5eb7f2

Please sign in to comment.