Home
last modified time | relevance | path

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

/Linux-v4.19/kernel/bpf/
Dcore.c106 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, in bpf_prog_realloc() argument
114 BUG_ON(fp_old == NULL); in bpf_prog_realloc()
118 if (pages <= fp_old->pages) in bpf_prog_realloc()
119 return fp_old; in bpf_prog_realloc()
121 delta = pages - fp_old->pages; in bpf_prog_realloc()
122 ret = __bpf_prog_charge(fp_old->aux->user, delta); in bpf_prog_realloc()
128 __bpf_prog_uncharge(fp_old->aux->user, delta); in bpf_prog_realloc()
130 memcpy(fp, fp_old, fp_old->pages * PAGE_SIZE); in bpf_prog_realloc()
137 fp_old->aux = NULL; in bpf_prog_realloc()
138 __bpf_prog_free(fp_old); in bpf_prog_realloc()
/Linux-v4.19/include/linux/
Dfilter.h733 struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,