Lines Matching refs:storage
259 struct bpf_local_storage *prev_storage, *storage; in bpf_local_storage_alloc() local
263 err = mem_charge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()
267 storage = kzalloc(sizeof(*storage), GFP_ATOMIC | __GFP_NOWARN); in bpf_local_storage_alloc()
268 if (!storage) { in bpf_local_storage_alloc()
273 INIT_HLIST_HEAD(&storage->list); in bpf_local_storage_alloc()
274 raw_spin_lock_init(&storage->lock); in bpf_local_storage_alloc()
275 storage->owner = owner; in bpf_local_storage_alloc()
277 bpf_selem_link_storage_nolock(storage, first_selem); in bpf_local_storage_alloc()
292 prev_storage = cmpxchg(owner_storage_ptr, NULL, storage); in bpf_local_storage_alloc()
311 kfree(storage); in bpf_local_storage_alloc()
312 mem_uncharge(smap, owner, sizeof(*storage)); in bpf_local_storage_alloc()