History

mm: remove the pgprot argument to __vmalloc

The pgprot argument to __vmalloc is always PAGE_KERNEL now, so remove it.

Christoph Hellwig committed 6 years ago

Commit 88dca4c1 parent d28ff9929 files · +47 −59Browse files

Unified · Split

29 files
  1. arch/x86/hyperv/hv_init.c +1 −2
  2. arch/x86/include/asm/kvm_host.h +1 −2
  3. arch/x86/kvm/svm/sev.c +1 −2
  4. drivers/block/drbd/drbd_bitmap.c +1 −3
  5. drivers/gpu/drm/etnaviv/etnaviv_dump.c +2 −2
  6. drivers/lightnvm/pblk-init.c +2 −3
  7. drivers/md/dm-bufio.c +2 −2
  8. drivers/mtd/ubi/io.c +2 −2
  9. drivers/scsi/sd_zbc.c +1 −2
  10. fs/gfs2/dir.c +4 −5
  11. fs/gfs2/quota.c +1 −1
  12. fs/nfs/blocklayout/extent_tree.c +1 −1
  13. fs/ntfs/malloc.h +1 −1
  14. fs/ubifs/debug.c +1 −1
  15. fs/ubifs/lprops.c +1 −1
  16. fs/ubifs/lpt_commit.c +2 −2
  17. fs/ubifs/orphan.c +1 −1
  18. fs/xfs/kmem.c +1 −1
  19. include/linux/vmalloc.h +1 −1
  20. kernel/bpf/core.c +3 −3
  21. kernel/groups.c +1 −1
  22. kernel/module.c +1 −2
  23. mm/nommu.c +7 −8
  24. mm/page_alloc.c +1 −1
  25. mm/percpu.c +1 −1
  26. mm/vmalloc.c +2 −2
  27. net/bridge/netfilter/ebtables.c +2 −4
  28. sound/core/memalloc.c +1 −1
  29. sound/core/pcm_memory.c +1 −1
arch/x86/hyperv/hv_init.c+1−2
@@ -97,8 +97,7 @@ static int hv_cpu_init(unsigned int cpu) · 96 unmodified lines
9797 * not be stopped in the case of CPU offlining and the VM will hang.
9898 */
9999 if (!*hvp) {
100− *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO,
101− PAGE_KERNEL);
100+ *hvp = __vmalloc(PAGE_SIZE, GFP_KERNEL | __GFP_ZERO);
102101 }
103102
104103 if (*hvp) {
arch/x86/include/asm/kvm_host.h+1−2
@@ -1279,8 +1279,7 @@ extern struct kmem_cache *x86_fpu_cache; · 1278 unmodified lines
12791279 #define __KVM_HAVE_ARCH_VM_ALLOC
12801280 static inline struct kvm *kvm_arch_alloc_vm(void)
12811281 {
1282− return __vmalloc(kvm_x86_ops.vm_size,
1283− GFP_KERNEL_ACCOUNT | __GFP_ZERO, PAGE_KERNEL);
1282+ return __vmalloc(kvm_x86_ops.vm_size, GFP_KERNEL_ACCOUNT | __GFP_ZERO);
12841283 }
12851284 void kvm_arch_free_vm(struct kvm *kvm);
12861285
arch/x86/kvm/svm/sev.c+1−2
@@ -336,8 +336,7 @@ static struct page **sev_pin_memory(struct kvm *kvm, unsigned long uaddr, · 335 unmodified lines
336336 /* Avoid using vmalloc for smaller buffers. */
337337 size = npages * sizeof(struct page *);
338338 if (size > PAGE_SIZE)
339− pages = __vmalloc(size, GFP_KERNEL_ACCOUNT | __GFP_ZERO,
340− PAGE_KERNEL);
339+ pages = __vmalloc(size, GFP_KERNEL_ACCOUNT | __GFP_ZERO);
341340 else
342341 pages = kmalloc(size, GFP_KERNEL_ACCOUNT);
343342
drivers/block/drbd/drbd_bitmap.c+1−3
@@ -396,9 +396,7 @@ static struct page **bm_realloc_pages(struct drbd_bitmap *b, unsigned long want) · 395 unmodified lines
396396 bytes = sizeof(struct page *)*want;
397397 new_pages = kzalloc(bytes, GFP_NOIO | __GFP_NOWARN);
398398 if (!new_pages) {
399− new_pages = __vmalloc(bytes,
400− GFP_NOIO | __GFP_ZERO,
401− PAGE_KERNEL);
399+ new_pages = __vmalloc(bytes, GFP_NOIO | __GFP_ZERO);
402400 if (!new_pages)
403401 return NULL;
404402 }
drivers/gpu/drm/etnaviv/etnaviv_dump.c+2−2
@@ -154,8 +154,8 @@ void etnaviv_core_dump(struct etnaviv_gem_submit *submit) · 153 unmodified lines
154154 file_size += sizeof(*iter.hdr) * n_obj;
155155
156156 /* Allocate the file in vmalloc memory, it's likely to be big */
157− iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN | __GFP_NORETRY,
158− PAGE_KERNEL);
157+ iter.start = __vmalloc(file_size, GFP_KERNEL | __GFP_NOWARN |
158+ __GFP_NORETRY);
159159 if (!iter.start) {
160160 mutex_unlock(&gpu->mmu_context->lock);
161161 dev_warn(gpu->dev, "failed to allocate devcoredump file\n");
drivers/lightnvm/pblk-init.c+2−3
@@ -145,9 +145,8 @@ static int pblk_l2p_init(struct pblk *pblk, bool factory_init) · 144 unmodified lines
145145 int ret = 0;
146146
147147 map_size = pblk_trans_map_size(pblk);
148− pblk->trans_map = __vmalloc(map_size, GFP_KERNEL | __GFP_NOWARN
149− | __GFP_RETRY_MAYFAIL | __GFP_HIGHMEM,
150− PAGE_KERNEL);
148+ pblk->trans_map = __vmalloc(map_size, GFP_KERNEL | __GFP_NOWARN |
149+ __GFP_RETRY_MAYFAIL | __GFP_HIGHMEM);
151150 if (!pblk->trans_map) {
152151 pblk_err(pblk, "failed to allocate L2P (need %zu of memory)\n",
153152 map_size);
drivers/md/dm-bufio.c+2−2
@@ -400,13 +400,13 @@ static void *alloc_buffer_data(struct dm_bufio_client *c, gfp_t gfp_mask, · 399 unmodified lines
400400 */
401401 if (gfp_mask & __GFP_NORETRY) {
402402 unsigned noio_flag = memalloc_noio_save();
403− void *ptr = __vmalloc(c->block_size, gfp_mask, PAGE_KERNEL);
403+ void *ptr = __vmalloc(c->block_size, gfp_mask);
404404
405405 memalloc_noio_restore(noio_flag);
406406 return ptr;
407407 }
408408
409− return __vmalloc(c->block_size, gfp_mask, PAGE_KERNEL);
409+ return __vmalloc(c->block_size, gfp_mask);
410410 }
411411
412412 /*
drivers/mtd/ubi/io.c+2−2
@@ -1297,7 +1297,7 @@ static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum, · 1296 unmodified lines
12971297 if (!ubi_dbg_chk_io(ubi))
12981298 return 0;
12991299
1300− buf1 = __vmalloc(len, GFP_NOFS, PAGE_KERNEL);
1300+ buf1 = __vmalloc(len, GFP_NOFS);
13011301 if (!buf1) {
13021302 ubi_err(ubi, "cannot allocate memory to check writes");
13031303 return 0;
@@ -1361,7 +1361,7 @@ int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset, int len) · 57 unmodified lines
13611361 if (!ubi_dbg_chk_io(ubi))
13621362 return 0;
13631363
1364− buf = __vmalloc(len, GFP_NOFS, PAGE_KERNEL);
1364+ buf = __vmalloc(len, GFP_NOFS);
13651365 if (!buf) {
13661366 ubi_err(ubi, "cannot allocate memory to check for 0xFFs");
13671367 return 0;
drivers/scsi/sd_zbc.c+1−2
@@ -136,8 +136,7 @@ static void *sd_zbc_alloc_report_buffer(struct scsi_disk *sdkp, · 135 unmodified lines
136136
137137 while (bufsize >= SECTOR_SIZE) {
138138 buf = __vmalloc(bufsize,
139− GFP_KERNEL | __GFP_ZERO | __GFP_NORETRY,
140− PAGE_KERNEL);
139+ GFP_KERNEL | __GFP_ZERO | __GFP_NORETRY);
141140 if (buf) {
142141 *buflen = bufsize;
143142 return buf;
fs/gfs2/dir.c+4−5
@@ -354,7 +354,7 @@ static __be64 *gfs2_dir_get_hash_table(struct gfs2_inode *ip) · 353 unmodified lines
354354
355355 hc = kmalloc(hsize, GFP_NOFS | __GFP_NOWARN);
356356 if (hc == NULL)
357− hc = __vmalloc(hsize, GFP_NOFS, PAGE_KERNEL);
357+ hc = __vmalloc(hsize, GFP_NOFS);
358358
359359 if (hc == NULL)
360360 return ERR_PTR(-ENOMEM);
@@ -1166,7 +1166,7 @@ static int dir_double_exhash(struct gfs2_inode *dip) · 805 unmodified lines
11661166
11671167 hc2 = kmalloc_array(hsize_bytes, 2, GFP_NOFS | __GFP_NOWARN);
11681168 if (hc2 == NULL)
1169− hc2 = __vmalloc(hsize_bytes * 2, GFP_NOFS, PAGE_KERNEL);
1169+ hc2 = __vmalloc(hsize_bytes * 2, GFP_NOFS);
11701170
11711171 if (!hc2)
11721172 return -ENOMEM;
@@ -1327,7 +1327,7 @@ static void *gfs2_alloc_sort_buffer(unsigned size) · 154 unmodified lines
13271327 if (size < KMALLOC_MAX_SIZE)
13281328 ptr = kmalloc(size, GFP_NOFS | __GFP_NOWARN);
13291329 if (!ptr)
1330− ptr = __vmalloc(size, GFP_NOFS, PAGE_KERNEL);
1330+ ptr = __vmalloc(size, GFP_NOFS);
13311331 return ptr;
13321332 }
13331333
@@ -1987,8 +1987,7 @@ static int leaf_dealloc(struct gfs2_inode *dip, u32 index, u32 len, · 653 unmodified lines
19871987
19881988 ht = kzalloc(size, GFP_NOFS | __GFP_NOWARN);
19891989 if (ht == NULL)
1990− ht = __vmalloc(size, GFP_NOFS | __GFP_NOWARN | __GFP_ZERO,
1991− PAGE_KERNEL);
1990+ ht = __vmalloc(size, GFP_NOFS | __GFP_NOWARN | __GFP_ZERO);
19921991 if (!ht)
19931992 return -ENOMEM;
19941993
fs/gfs2/quota.c+1−1
@@ -1365,7 +1365,7 @@ int gfs2_quota_init(struct gfs2_sbd *sdp) · 1364 unmodified lines
13651365 sdp->sd_quota_bitmap = kzalloc(bm_size, GFP_NOFS | __GFP_NOWARN);
13661366 if (sdp->sd_quota_bitmap == NULL)
13671367 sdp->sd_quota_bitmap = __vmalloc(bm_size, GFP_NOFS |
1368− __GFP_ZERO, PAGE_KERNEL);
1368+ __GFP_ZERO);
13691369 if (!sdp->sd_quota_bitmap)
13701370 return error;
13711371
fs/nfs/blocklayout/extent_tree.c+1−1
@@ -582,7 +582,7 @@ retry: · 581 unmodified lines
582582 if (!arg->layoutupdate_pages)
583583 return -ENOMEM;
584584
585− start_p = __vmalloc(buffer_size, GFP_NOFS, PAGE_KERNEL);
585+ start_p = __vmalloc(buffer_size, GFP_NOFS);
586586 if (!start_p) {
587587 kfree(arg->layoutupdate_pages);
588588 return -ENOMEM;
fs/ntfs/malloc.h+1−1
@@ -34,7 +34,7 @@ static inline void *__ntfs_malloc(unsigned long size, gfp_t gfp_mask) · 33 unmodified lines
3434 /* return (void *)__get_free_page(gfp_mask); */
3535 }
3636 if (likely((size >> PAGE_SHIFT) < totalram_pages()))
37− return __vmalloc(size, gfp_mask, PAGE_KERNEL);
37+ return __vmalloc(size, gfp_mask);
3838 return NULL;
3939 }
4040
fs/ubifs/debug.c+1−1
@@ -815,7 +815,7 @@ void ubifs_dump_leb(const struct ubifs_info *c, int lnum) · 814 unmodified lines
815815
816816 pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum);
817817
818− buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL);
818+ buf = __vmalloc(c->leb_size, GFP_NOFS);
819819 if (!buf) {
820820 ubifs_err(c, "cannot allocate memory for dumping LEB %d", lnum);
821821 return;
fs/ubifs/lprops.c+1−1
@@ -1095,7 +1095,7 @@ static int scan_check_cb(struct ubifs_info *c, · 1094 unmodified lines
10951095 return LPT_SCAN_CONTINUE;
10961096 }
10971097
1098− buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL);
1098+ buf = __vmalloc(c->leb_size, GFP_NOFS);
10991099 if (!buf)
11001100 return -ENOMEM;
11011101
fs/ubifs/lpt_commit.c+2−2
@@ -1596,7 +1596,7 @@ static int dbg_check_ltab_lnum(struct ubifs_info *c, int lnum) · 1595 unmodified lines
15961596 if (!dbg_is_chk_lprops(c))
15971597 return 0;
15981598
1599− buf = p = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL);
1599+ buf = p = __vmalloc(c->leb_size, GFP_NOFS);
16001600 if (!buf) {
16011601 ubifs_err(c, "cannot allocate memory for ltab checking");
16021602 return 0;
@@ -1845,7 +1845,7 @@ static void dump_lpt_leb(const struct ubifs_info *c, int lnum) · 242 unmodified lines
18451845 void *buf, *p;
18461846
18471847 pr_err("(pid %d) start dumping LEB %d\n", current->pid, lnum);
1848− buf = p = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL);
1848+ buf = p = __vmalloc(c->leb_size, GFP_NOFS);
18491849 if (!buf) {
18501850 ubifs_err(c, "cannot allocate memory to dump LPT");
18511851 return;
fs/ubifs/orphan.c+1−1
@@ -977,7 +977,7 @@ static int dbg_scan_orphans(struct ubifs_info *c, struct check_info *ci) · 976 unmodified lines
977977 if (c->no_orphs)
978978 return 0;
979979
980− buf = __vmalloc(c->leb_size, GFP_NOFS, PAGE_KERNEL);
980+ buf = __vmalloc(c->leb_size, GFP_NOFS);
981981 if (!buf) {
982982 ubifs_err(c, "cannot allocate memory to check orphans");
983983 return 0;
fs/xfs/kmem.c+1−1
@@ -48,7 +48,7 @@ __kmem_vmalloc(size_t size, xfs_km_flags_t flags) · 47 unmodified lines
4848 if (flags & KM_NOFS)
4949 nofs_flag = memalloc_nofs_save();
5050
51− ptr = __vmalloc(size, lflags, PAGE_KERNEL);
51+ ptr = __vmalloc(size, lflags);
5252
5353 if (flags & KM_NOFS)
5454 memalloc_nofs_restore(nofs_flag);
include/linux/vmalloc.h+1−1
@@ -110,7 +110,7 @@ extern void *vmalloc_user_node_flags(unsigned long size, int node, gfp_t flags); · 109 unmodified lines
110110 extern void *vmalloc_exec(unsigned long size);
111111 extern void *vmalloc_32(unsigned long size);
112112 extern void *vmalloc_32_user(unsigned long size);
113−extern void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot);
113+extern void *__vmalloc(unsigned long size, gfp_t gfp_mask);
114114 extern void *__vmalloc_node_range(unsigned long size, unsigned long align,
115115 unsigned long start, unsigned long end, gfp_t gfp_mask,
116116 pgprot_t prot, unsigned long vm_flags, int node,
kernel/bpf/core.c+3−3
@@ -82,7 +82,7 @@ struct bpf_prog *bpf_prog_alloc_no_stats(unsigned int size, gfp_t gfp_extra_flag · 81 unmodified lines
8282 struct bpf_prog *fp;
8383
8484 size = round_up(size, PAGE_SIZE);
85− fp = __vmalloc(size, gfp_flags, PAGE_KERNEL);
85+ fp = __vmalloc(size, gfp_flags);
8686 if (fp == NULL)
8787 return NULL;
8888
@@ -232,7 +232,7 @@ struct bpf_prog *bpf_prog_realloc(struct bpf_prog *fp_old, unsigned int size, · 143 unmodified lines
232232 if (ret)
233233 return NULL;
234234
235− fp = __vmalloc(size, gfp_flags, PAGE_KERNEL);
235+ fp = __vmalloc(size, gfp_flags);
236236 if (fp == NULL) {
237237 __bpf_prog_uncharge(fp_old->aux->user, delta);
238238 } else {
@@ -1089,7 +1089,7 @@ static struct bpf_prog *bpf_prog_clone_create(struct bpf_prog *fp_other, · 850 unmodified lines
10891089 gfp_t gfp_flags = GFP_KERNEL | __GFP_ZERO | gfp_extra_flags;
10901090 struct bpf_prog *fp;
10911091
1092− fp = __vmalloc(fp_other->pages * PAGE_SIZE, gfp_flags, PAGE_KERNEL);
1092+ fp = __vmalloc(fp_other->pages * PAGE_SIZE, gfp_flags);
10931093 if (fp != NULL) {
10941094 /* aux->prog still points to the fp_other one, so
10951095 * when promoting the clone to the real program,
kernel/groups.c+1−1
@@ -20,7 +20,7 @@ struct group_info *groups_alloc(int gidsetsize) · 19 unmodified lines
2020 len = sizeof(struct group_info) + sizeof(kgid_t) * gidsetsize;
2121 gi = kmalloc(len, GFP_KERNEL_ACCOUNT|__GFP_NOWARN|__GFP_NORETRY);
2222 if (!gi)
23− gi = __vmalloc(len, GFP_KERNEL_ACCOUNT, PAGE_KERNEL);
23+ gi = __vmalloc(len, GFP_KERNEL_ACCOUNT);
2424 if (!gi)
2525 return NULL;
2626
kernel/module.c+1−2
@@ -2946,8 +2946,7 @@ static int copy_module_from_user(const void __user *umod, unsigned long len, · 2945 unmodified lines
29462946 return err;
29472947
29482948 /* Suck in entire file: we'll want most of it. */
2949− info->hdr = __vmalloc(info->len,
2950− GFP_KERNEL | __GFP_NOWARN, PAGE_KERNEL);
2949+ info->hdr = __vmalloc(info->len, GFP_KERNEL | __GFP_NOWARN);
29512950 if (!info->hdr)
29522951 return -ENOMEM;
29532952
mm/nommu.c+7−8
@@ -140,7 +140,7 @@ void vfree(const void *addr) · 139 unmodified lines
140140 }
141141 EXPORT_SYMBOL(vfree);
142142
143−void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot)
143+void *__vmalloc(unsigned long size, gfp_t gfp_mask)
144144 {
145145 /*
146146 * You can't specify __GFP_HIGHMEM with kmalloc() since kmalloc()
@@ -152,14 +152,14 @@ EXPORT_SYMBOL(__vmalloc); · 5 unmodified lines
152152
153153 void *__vmalloc_node_flags(unsigned long size, int node, gfp_t flags)
154154 {
155− return __vmalloc(size, flags, PAGE_KERNEL);
155+ return __vmalloc(size, flags);
156156 }
157157
158158 static void *__vmalloc_user_flags(unsigned long size, gfp_t flags)
159159 {
160160 void *ret;
161161
162− ret = __vmalloc(size, flags, PAGE_KERNEL);
162+ ret = __vmalloc(size, flags);
163163 if (ret) {
164164 struct vm_area_struct *vma;
165165
@@ -230,7 +230,7 @@ long vwrite(char *buf, char *addr, unsigned long count) · 64 unmodified lines
230230 */
231231 void *vmalloc(unsigned long size)
232232 {
233− return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL);
233+ return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM);
234234 }
235235 EXPORT_SYMBOL(vmalloc);
236236
@@ -248,8 +248,7 @@ EXPORT_SYMBOL(vmalloc); · 11 unmodified lines
248248 */
249249 void *vzalloc(unsigned long size)
250250 {
251− return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO,
252− PAGE_KERNEL);
251+ return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM | __GFP_ZERO);
253252 }
254253 EXPORT_SYMBOL(vzalloc);
255254
@@ -302,7 +301,7 @@ EXPORT_SYMBOL(vzalloc_node); · 46 unmodified lines
302301
303302 void *vmalloc_exec(unsigned long size)
304303 {
305− return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM, PAGE_KERNEL_EXEC);
304+ return __vmalloc(size, GFP_KERNEL | __GFP_HIGHMEM);
306305 }
307306
308307 /**
@@ -314,7 +313,7 @@ void *vmalloc_exec(unsigned long size) · 5 unmodified lines
314313 */
315314 void *vmalloc_32(unsigned long size)
316315 {
317− return __vmalloc(size, GFP_KERNEL, PAGE_KERNEL);
316+ return __vmalloc(size, GFP_KERNEL);
318317 }
319318 EXPORT_SYMBOL(vmalloc_32);
320319
mm/page_alloc.c+1−1
@@ -8244,7 +8244,7 @@ void *__init alloc_large_system_hash(const char *tablename, · 8243 unmodified lines
82448244 table = memblock_alloc_raw(size,
82458245 SMP_CACHE_BYTES);
82468246 } else if (get_order(size) >= MAX_ORDER || hashdist) {
8247− table = __vmalloc(size, gfp_flags, PAGE_KERNEL);
8247+ table = __vmalloc(size, gfp_flags);
82488248 virt = true;
82498249 } else {
82508250 /*
mm/percpu.c+1−1
@@ -482,7 +482,7 @@ static void *pcpu_mem_zalloc(size_t size, gfp_t gfp) · 481 unmodified lines
482482 if (size <= PAGE_SIZE)
483483 return kzalloc(size, gfp);
484484 else
485− return __vmalloc(size, gfp | __GFP_ZERO, PAGE_KERNEL);
485+ return __vmalloc(size, gfp | __GFP_ZERO);
486486 }
487487
488488 /**
mm/vmalloc.c+2−2
@@ -2564,9 +2564,9 @@ static void *__vmalloc_node(unsigned long size, unsigned long align, · 2563 unmodified lines
25642564 gfp_mask, prot, 0, node, caller);
25652565 }
25662566
2567−void *__vmalloc(unsigned long size, gfp_t gfp_mask, pgprot_t prot)
2567+void *__vmalloc(unsigned long size, gfp_t gfp_mask)
25682568 {
2569− return __vmalloc_node(size, 1, gfp_mask, prot, NUMA_NO_NODE,
2569+ return __vmalloc_node(size, 1, gfp_mask, PAGE_KERNEL, NUMA_NO_NODE,
25702570 __builtin_return_address(0));
25712571 }
25722572 EXPORT_SYMBOL(__vmalloc);
net/bridge/netfilter/ebtables.c+2−4
@@ -1095,16 +1095,14 @@ static int do_replace(struct net *net, const void __user *user, · 1094 unmodified lines
10951095 tmp.name[sizeof(tmp.name) - 1] = 0;
10961096
10971097 countersize = COUNTER_OFFSET(tmp.nentries) * nr_cpu_ids;
1098− newinfo = __vmalloc(sizeof(*newinfo) + countersize, GFP_KERNEL_ACCOUNT,
1099− PAGE_KERNEL);
1098+ newinfo = __vmalloc(sizeof(*newinfo) + countersize, GFP_KERNEL_ACCOUNT);
11001099 if (!newinfo)
11011100 return -ENOMEM;
11021101
11031102 if (countersize)
11041103 memset(newinfo->counters, 0, countersize);
11051104
1106− newinfo->entries = __vmalloc(tmp.entries_size, GFP_KERNEL_ACCOUNT,
1107− PAGE_KERNEL);
1105+ newinfo->entries = __vmalloc(tmp.entries_size, GFP_KERNEL_ACCOUNT);
11081106 if (!newinfo->entries) {
11091107 ret = -ENOMEM;
11101108 goto free_newinfo;
sound/core/memalloc.c+1−1
@@ -143,7 +143,7 @@ int snd_dma_alloc_pages(int type, struct device *device, size_t size, · 142 unmodified lines
143143 break;
144144 case SNDRV_DMA_TYPE_VMALLOC:
145145 gfp = snd_mem_get_gfp_flags(device, GFP_KERNEL | __GFP_HIGHMEM);
146− dmab->area = __vmalloc(size, gfp, PAGE_KERNEL);
146+ dmab->area = __vmalloc(size, gfp);
147147 dmab->addr = 0;
148148 break;
149149 #ifdef CONFIG_HAS_DMA
sound/core/pcm_memory.c+1−1
@@ -460,7 +460,7 @@ int _snd_pcm_lib_alloc_vmalloc_buffer(struct snd_pcm_substream *substream, · 459 unmodified lines
460460 return 0; /* already large enough */
461461 vfree(runtime->dma_area);
462462 }
463− runtime->dma_area = __vmalloc(size, gfp_flags, PAGE_KERNEL);
463+ runtime->dma_area = __vmalloc(size, gfp_flags);
464464 if (!runtime->dma_area)
465465 return -ENOMEM;
466466 runtime->dma_bytes = size;