Skip to content

Commit

Permalink
net: unexport __sk_mem_{raise|reduce}_allocated
Browse files Browse the repository at this point in the history
These two helpers are only used from core networking.

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
  • Loading branch information
Eric Dumazet authored and Jakub Kicinski committed Jun 10, 2022
1 parent 4890b68 commit 0f2c269
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/core/sock.c
Original file line number Diff line number Diff line change
Expand Up @@ -2987,7 +2987,6 @@ int __sk_mem_raise_allocated(struct sock *sk, int size, int amt, int kind)

return 0;
}
EXPORT_SYMBOL(__sk_mem_raise_allocated);

/**
* __sk_mem_schedule - increase sk_forward_alloc and memory_allocated
Expand Down Expand Up @@ -3029,7 +3028,6 @@ void __sk_mem_reduce_allocated(struct sock *sk, int amount)
(sk_memory_allocated(sk) < sk_prot_mem_limits(sk, 0)))
sk_leave_memory_pressure(sk);
}
EXPORT_SYMBOL(__sk_mem_reduce_allocated);

/**
* __sk_mem_reclaim - reclaim sk_forward_alloc and memory_allocated
Expand Down

0 comments on commit 0f2c269

Please sign in to comment.