diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2017-03-19 02:20:27 +0100 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2017-04-06 08:09:23 +0200 |
commit | e73a67f7cd471a14bb1351954609e0b0ef5d2187 (patch) | |
tree | b5b8de7536d6ce142390889b2e8dd6f7936dcf55 /net/rds/tcp_send.c | |
parent | Linux 4.11-rc1 (diff) | |
download | linux-e73a67f7cd471a14bb1351954609e0b0ef5d2187.tar.xz linux-e73a67f7cd471a14bb1351954609e0b0ef5d2187.zip |
don't open-code kernel_setsockopt()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'net/rds/tcp_send.c')
-rw-r--r-- | net/rds/tcp_send.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/net/rds/tcp_send.c b/net/rds/tcp_send.c index dcf4742083ea..52d11d7725c8 100644 --- a/net/rds/tcp_send.c +++ b/net/rds/tcp_send.c @@ -40,13 +40,7 @@ static void rds_tcp_cork(struct socket *sock, int val) { - mm_segment_t oldfs; - - oldfs = get_fs(); - set_fs(KERNEL_DS); - sock->ops->setsockopt(sock, SOL_TCP, TCP_CORK, (char __user *)&val, - sizeof(val)); - set_fs(oldfs); + kernel_setsockopt(sock, SOL_TCP, TCP_CORK, (void *)&val, sizeof(val)); } void rds_tcp_xmit_path_prepare(struct rds_conn_path *cp) |