mm: remove the pgprot argument to __vmalloc
[linux-2.6-block.git] / kernel / bpf / core.c
index 14aa1f74dd10dc8da24341dcd21a12db9fc192a3..cf6fe9107f5c0b9fc622d00c783d2c014ab658ac 100644 (file)
@@ -82,7 +82,7 @@ struct bpf_prog *bpf_prog_alloc_no_stats(unsigned int size, gfp_t gfp_extra_flag
        struct bpf_prog *fp;
 
        size = round_up(size, PAGE_SIZE);
-       fp = __vmalloc(size, gfp_flags, PAGE_KERNEL);
+       fp = __vmalloc(size, gfp_flags);
        if (fp == NULL)
                return NULL;
 
@@ -232,7 +232,7 @@ struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size,
        if (ret)
                return NULL;
 
-       fp = __vmalloc(size, gfp_flags, PAGE_KERNEL);
+       fp = __vmalloc(size, gfp_flags);
        if (fp == NULL) {
                __bpf_prog_uncharge(fp_old->aux->user, delta);
        } else {
@@ -1089,7 +1089,7 @@ static struct bpf_prog *bpf_prog_clone_create(struct bpf_prog *fp_other,
        gfp_t gfp_flags = GFP_KERNEL | __GFP_ZERO | gfp_extra_flags;
        struct bpf_prog *fp;
 
-       fp = __vmalloc(fp_other->pages * PAGE_SIZE, gfp_flags, PAGE_KERNEL);
+       fp = __vmalloc(fp_other->pages * PAGE_SIZE, gfp_flags);
        if (fp != NULL) {
                /* aux->prog still points to the fp_other one, so
                 * when promoting the clone to the real program,