Home
last modified time | relevance | path

Searched refs:local_reserve (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/include/net/
Dsock.h1466 int local_reserve; in sk_memory_allocated_add() local
1469 local_reserve = __this_cpu_add_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_add()
1470 if (local_reserve >= SK_MEMORY_PCPU_RESERVE) { in sk_memory_allocated_add()
1471 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_add()
1472 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_add()
1480 int local_reserve; in sk_memory_allocated_sub() local
1483 local_reserve = __this_cpu_sub_return(*sk->sk_prot->per_cpu_fw_alloc, amt); in sk_memory_allocated_sub()
1484 if (local_reserve <= -SK_MEMORY_PCPU_RESERVE) { in sk_memory_allocated_sub()
1485 __this_cpu_sub(*sk->sk_prot->per_cpu_fw_alloc, local_reserve); in sk_memory_allocated_sub()
1486 atomic_long_add(local_reserve, sk->sk_prot->memory_allocated); in sk_memory_allocated_sub()