mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-25 16:11:45 +00:00
atm: eliminate atm_guess_pdu2truesize()
Signed-off-by: Chas Williams - CONTRACTOR <chas@cmf.nrl.navy.mil> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
021ac8d387
commit
49f5ed4250
3 changed files with 3 additions and 13 deletions
|
@ -26,7 +26,7 @@ struct sk_buff *atm_alloc_charge(struct atm_vcc *vcc, int pdu_size,
|
|||
gfp_t gfp_flags)
|
||||
{
|
||||
struct sock *sk = sk_atm(vcc);
|
||||
int guess = atm_guess_pdu2truesize(pdu_size);
|
||||
int guess = SKB_TRUESIZE(pdu_size);
|
||||
|
||||
atm_force_charge(vcc, guess);
|
||||
if (atomic_read(&sk->sk_rmem_alloc) <= sk->sk_rcvbuf) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue