Searched refs:local_reserve (Results 1 – 1 of 1) sorted by relevance
1465 int local_reserve; in sk_memory_allocated_add() local1468 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_add()1469 if (local_reserve >= SK_MEMORY_PCPU_RESERVE) { in sk_memory_allocated_add()1470 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_add()1471 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()1479 int local_reserve; in sk_memory_allocated_sub() local1482 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_sub()1483 if (local_reserve <= -SK_MEMORY_PCPU_RESERVE) { in sk_memory_allocated_sub()1484 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_sub()1485 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()