mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
tcp: move inet_twsk_schedule helper out of header
Its no longer used outside inet_timewait_sock.c, so move it there. Reviewed-by: Eric Dumazet <edumazet@google.com> Signed-off-by: Florian Westphal <fw@strlen.de> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c75ad7c759
commit
f81d0dd2fd
@ -101,11 +101,6 @@ void inet_twsk_hashdance_schedule(struct inet_timewait_sock *tw,
|
||||
void __inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo,
|
||||
bool rearm);
|
||||
|
||||
static inline void inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo)
|
||||
{
|
||||
__inet_twsk_schedule(tw, timeo, false);
|
||||
}
|
||||
|
||||
static inline void inet_twsk_reschedule(struct inet_timewait_sock *tw, int timeo)
|
||||
{
|
||||
__inet_twsk_schedule(tw, timeo, true);
|
||||
|
@ -92,6 +92,11 @@ static void inet_twsk_add_node_rcu(struct inet_timewait_sock *tw,
|
||||
hlist_nulls_add_head_rcu(&tw->tw_node, list);
|
||||
}
|
||||
|
||||
static void inet_twsk_schedule(struct inet_timewait_sock *tw, int timeo)
|
||||
{
|
||||
__inet_twsk_schedule(tw, timeo, false);
|
||||
}
|
||||
|
||||
/*
|
||||
* Enter the time wait state.
|
||||
* Essentially we whip up a timewait bucket, copy the relevant info into it
|
||||
|
Loading…
Reference in New Issue
Block a user