aboutsummaryrefslogtreecommitdiffstats
path: root/net/dccp
diff options
context:
space:
mode:
authorYing Xue <ying.xue@windriver.com>2015-03-02 02:37:48 -0500
committerDavid S. Miller <davem@davemloft.net>2015-03-02 13:06:31 -0500
commit1b784140474e4fc94281a49e96c67d29df0efbde (patch)
tree569e9813ae7ab79616849b117c6b50b3d6e4dabb /net/dccp
parent39a0295f901423e260a034ac7c3211ecaa9c2745 (diff)
net: Remove iocb argument from sendmsg and recvmsg
After TIPC doesn't depend on iocb argument in its internal implementations of sendmsg() and recvmsg() hooks defined in proto structure, no any user is using iocb argument in them at all now. Then we can drop the redundant iocb argument completely from kinds of implementations of both sendmsg() and recvmsg() in the entire networking stack. Cc: Christoph Hellwig <hch@lst.de> Suggested-by: Al Viro <viro@ZenIV.linux.org.uk> Signed-off-by: Ying Xue <ying.xue@windriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp')
-rw-r--r--net/dccp/dccp.h8
-rw-r--r--net/dccp/probe.c3
-rw-r--r--net/dccp/proto.c7
3 files changed, 7 insertions, 11 deletions
diff --git a/net/dccp/dccp.h b/net/dccp/dccp.h
index e4c144fa706f..3b1d64d6e093 100644
--- a/net/dccp/dccp.h
+++ b/net/dccp/dccp.h
@@ -310,11 +310,9 @@ int compat_dccp_setsockopt(struct sock *sk, int level, int optname,
310 char __user *optval, unsigned int optlen); 310 char __user *optval, unsigned int optlen);
311#endif 311#endif
312int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg); 312int dccp_ioctl(struct sock *sk, int cmd, unsigned long arg);
313int dccp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, 313int dccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size);
314 size_t size); 314int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
315int dccp_recvmsg(struct kiocb *iocb, struct sock *sk, 315 int flags, int *addr_len);
316 struct msghdr *msg, size_t len, int nonblock, int flags,
317 int *addr_len);
318void dccp_shutdown(struct sock *sk, int how); 316void dccp_shutdown(struct sock *sk, int how);
319int inet_dccp_listen(struct socket *sock, int backlog); 317int inet_dccp_listen(struct socket *sock, int backlog);
320unsigned int dccp_poll(struct file *file, struct socket *sock, 318unsigned int dccp_poll(struct file *file, struct socket *sock,
diff --git a/net/dccp/probe.c b/net/dccp/probe.c
index 595ddf0459db..d8346d0eadeb 100644
--- a/net/dccp/probe.c
+++ b/net/dccp/probe.c
@@ -72,8 +72,7 @@ static void printl(const char *fmt, ...)
72 wake_up(&dccpw.wait); 72 wake_up(&dccpw.wait);
73} 73}
74 74
75static int jdccp_sendmsg(struct kiocb *iocb, struct sock *sk, 75static int jdccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t size)
76 struct msghdr *msg, size_t size)
77{ 76{
78 const struct inet_sock *inet = inet_sk(sk); 77 const struct inet_sock *inet = inet_sk(sk);
79 struct ccid3_hc_tx_sock *hc = NULL; 78 struct ccid3_hc_tx_sock *hc = NULL;
diff --git a/net/dccp/proto.c b/net/dccp/proto.c
index e171b780b499..52a94016526d 100644
--- a/net/dccp/proto.c
+++ b/net/dccp/proto.c
@@ -741,8 +741,7 @@ static int dccp_msghdr_parse(struct msghdr *msg, struct sk_buff *skb)
741 return 0; 741 return 0;
742} 742}
743 743
744int dccp_sendmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, 744int dccp_sendmsg(struct sock *sk, struct msghdr *msg, size_t len)
745 size_t len)
746{ 745{
747 const struct dccp_sock *dp = dccp_sk(sk); 746 const struct dccp_sock *dp = dccp_sk(sk);
748 const int flags = msg->msg_flags; 747 const int flags = msg->msg_flags;
@@ -806,8 +805,8 @@ out_discard:
806 805
807EXPORT_SYMBOL_GPL(dccp_sendmsg); 806EXPORT_SYMBOL_GPL(dccp_sendmsg);
808 807
809int dccp_recvmsg(struct kiocb *iocb, struct sock *sk, struct msghdr *msg, 808int dccp_recvmsg(struct sock *sk, struct msghdr *msg, size_t len, int nonblock,
810 size_t len, int nonblock, int flags, int *addr_len) 809 int flags, int *addr_len)
811{ 810{
812 const struct dccp_hdr *dh; 811 const struct dccp_hdr *dh;
813 long timeo; 812 long timeo;