Commit 08e559b3 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

tcp: rename functions for unlocking tcp connections

One function is used on restoring and one is used on dumping,
so each function has own prefix rst or cpt.
The both functions have the same effect, so the main part of the names
is same and it describes "unlock_tcp_connections".
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 3223165c
......@@ -52,9 +52,9 @@ static inline void tcp_repair_off(int fd)
pr_perror("Failed to turn off repair mode on socket");
}
void tcp_unlock_all(void);
void tcp_locked_conn_add(struct inet_sk_info *);
void tcp_unlock_connections(void);
void rst_unlock_tcp_connections(void);
void cpt_unlock_tcp_connections(void);
int dump_one_tcp(int sk, struct inet_sk_desc *sd);
int restore_one_tcp(int sk, struct inet_sk_info *si);
......
......@@ -423,8 +423,8 @@ void network_unlock(void)
pr_info("Unlock network\n");
if (!(opts.namespaces_flags & CLONE_NEWNET)) {
tcp_unlock_all();
tcp_unlock_connections();
cpt_unlock_tcp_connections();
rst_unlock_tcp_connections();
return;
}
......
......@@ -103,7 +103,7 @@ static void tcp_unlock_one(struct inet_sk_desc *sk)
close(sk->rfd);
}
void tcp_unlock_all(void)
void cpt_unlock_tcp_connections(void)
{
struct inet_sk_desc *sk, *n;
......@@ -531,7 +531,7 @@ void tcp_locked_conn_add(struct inet_sk_info *ii)
list_add_tail(&ii->rlist, &rst_tcp_repair_sockets);
}
void tcp_unlock_connections(void)
void rst_unlock_tcp_connections(void)
{
struct inet_sk_info *ii;
......
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