Lines Matching refs:storage

51 	struct local_storage *storage;  in BPF_PROG()  local
57 storage = bpf_task_storage_get(&task_storage_map, in BPF_PROG()
59 if (storage) { in BPF_PROG()
61 bpf_spin_lock(&storage->lock); in BPF_PROG()
62 is_self_unlink = storage->exec_inode == victim->d_inode; in BPF_PROG()
63 bpf_spin_unlock(&storage->lock); in BPF_PROG()
77 struct local_storage *storage; in BPF_PROG() local
87 storage = bpf_inode_storage_get(&inode_storage_map, old_dentry->d_inode, in BPF_PROG()
89 if (!storage) in BPF_PROG()
92 bpf_spin_lock(&storage->lock); in BPF_PROG()
93 if (storage->value != DUMMY_STORAGE_VALUE) in BPF_PROG()
95 bpf_spin_unlock(&storage->lock); in BPF_PROG()
109 struct local_storage *storage; in BPF_PROG() local
115 storage = bpf_sk_storage_get(&sk_storage_map, sock->sk, 0, in BPF_PROG()
117 if (!storage) in BPF_PROG()
120 bpf_spin_lock(&storage->lock); in BPF_PROG()
121 if (storage->value != DUMMY_STORAGE_VALUE) in BPF_PROG()
123 bpf_spin_unlock(&storage->lock); in BPF_PROG()
137 struct local_storage *storage; in BPF_PROG() local
142 storage = bpf_sk_storage_get(&sk_storage_map, sock->sk, 0, in BPF_PROG()
144 if (!storage) in BPF_PROG()
147 bpf_spin_lock(&storage->lock); in BPF_PROG()
148 storage->value = DUMMY_STORAGE_VALUE; in BPF_PROG()
149 bpf_spin_unlock(&storage->lock); in BPF_PROG()
161 struct local_storage *storage; in BPF_PROG() local
166 storage = bpf_task_storage_get(&task_storage_map, in BPF_PROG()
169 if (storage) { in BPF_PROG()
170 bpf_spin_lock(&storage->lock); in BPF_PROG()
171 storage->exec_inode = bprm->file->f_inode; in BPF_PROG()
172 bpf_spin_unlock(&storage->lock); in BPF_PROG()
175 storage = bpf_inode_storage_get(&inode_storage_map, bprm->file->f_inode, in BPF_PROG()
177 if (!storage) in BPF_PROG()
180 bpf_spin_lock(&storage->lock); in BPF_PROG()
181 storage->value = DUMMY_STORAGE_VALUE; in BPF_PROG()
182 bpf_spin_unlock(&storage->lock); in BPF_PROG()