Lines Matching refs:storage
297 struct bpf_local_storage *prev_storage, *storage; in bpf_local_storage_alloc() local
301 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
305 storage = bpf_map_kzalloc(&smap->map, sizeof(*storage), in bpf_local_storage_alloc()
307 if (!storage) { in bpf_local_storage_alloc()
312 INIT_HLIST_HEAD(&storage->list); in bpf_local_storage_alloc()
313 raw_spin_lock_init(&storage->lock); in bpf_local_storage_alloc()
314 storage->owner = owner; in bpf_local_storage_alloc()
316 bpf_selem_link_storage_nolock(storage, first_selem); in bpf_local_storage_alloc()
331 prev_storage = cmpxchg(owner_storage_ptr, NULL, storage); in bpf_local_storage_alloc()
351 kfree(storage); in bpf_local_storage_alloc()
352 mem_uncharge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()