Home
last modified time | relevance | path

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

/Linux-v5.10/kernel/bpf/
Dcore.c219 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, in bpf_prog_realloc() argument
229 if (pages <= fp_old->pages) in bpf_prog_realloc()
230 return fp_old; in bpf_prog_realloc()
232 delta = pages - fp_old->pages; in bpf_prog_realloc()
233 ret = __bpf_prog_charge(fp_old->aux->user, delta); in bpf_prog_realloc()
239 __bpf_prog_uncharge(fp_old->aux->user, delta); in bpf_prog_realloc()
241 memcpy(fp, fp_old, fp_old->pages * PAGE_SIZE); in bpf_prog_realloc()
248 fp_old->aux = NULL; in bpf_prog_realloc()
249 __bpf_prog_free(fp_old); in bpf_prog_realloc()
/Linux-v5.10/include/linux/
Dfilter.h857 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,