Skip to content

Commit 0e9b4a8

Browse files
author
Al Viro
committed
missing bits of "iov_iter: Separate type from direction and use accessor functions"
sunrpc patches from nfs tree conflict with calling conventions change done in iov_iter work. Trivial fixup... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
1 parent 78a63f1 commit 0e9b4a8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

net/sunrpc/xprtsock.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ static ssize_t
361361
xs_read_kvec(struct socket *sock, struct msghdr *msg, int flags,
362362
struct kvec *kvec, size_t count, size_t seek)
363363
{
364-
iov_iter_kvec(&msg->msg_iter, READ | ITER_KVEC, kvec, 1, count);
364+
iov_iter_kvec(&msg->msg_iter, READ, kvec, 1, count);
365365
return xs_sock_recvmsg(sock, msg, flags, seek);
366366
}
367367

@@ -370,7 +370,7 @@ xs_read_bvec(struct socket *sock, struct msghdr *msg, int flags,
370370
struct bio_vec *bvec, unsigned long nr, size_t count,
371371
size_t seek)
372372
{
373-
iov_iter_bvec(&msg->msg_iter, READ | ITER_BVEC, bvec, nr, count);
373+
iov_iter_bvec(&msg->msg_iter, READ, bvec, nr, count);
374374
return xs_sock_recvmsg(sock, msg, flags, seek);
375375
}
376376

0 commit comments

Comments
 (0)