diff options
| author | Christoph Lameter <clameter@sgi.com> | 2006-12-06 23:33:17 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@woody.osdl.org> | 2006-12-07 11:39:24 -0500 |
| commit | e94b1766097d53e6f3ccfb36c8baa562ffeda3fc (patch) | |
| tree | 93fa0a8ab84976d4e89c50768ca8b8878d642a0d | |
| parent | 54e6ecb23951b195d02433a741c7f7cb0b796c78 (diff) | |
[PATCH] slab: remove SLAB_KERNEL
SLAB_KERNEL is an alias of GFP_KERNEL.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
114 files changed, 164 insertions, 165 deletions
diff --git a/arch/i386/kernel/sysenter.c b/arch/i386/kernel/sysenter.c index 713ba39d32c6..0bbacd0ec175 100644 --- a/arch/i386/kernel/sysenter.c +++ b/arch/i386/kernel/sysenter.c | |||
| @@ -132,7 +132,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, int exstack) | |||
| 132 | goto up_fail; | 132 | goto up_fail; |
| 133 | } | 133 | } |
| 134 | 134 | ||
| 135 | vma = kmem_cache_zalloc(vm_area_cachep, SLAB_KERNEL); | 135 | vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL); |
| 136 | if (!vma) { | 136 | if (!vma) { |
| 137 | ret = -ENOMEM; | 137 | ret = -ENOMEM; |
| 138 | goto up_fail; | 138 | goto up_fail; |
diff --git a/arch/ia64/ia32/binfmt_elf32.c b/arch/ia64/ia32/binfmt_elf32.c index daa6b91bc921..578737ec7629 100644 --- a/arch/ia64/ia32/binfmt_elf32.c +++ b/arch/ia64/ia32/binfmt_elf32.c | |||
| @@ -91,7 +91,7 @@ ia64_elf32_init (struct pt_regs *regs) | |||
| 91 | * it with privilege level 3 because the IVE uses non-privileged accesses to these | 91 | * it with privilege level 3 because the IVE uses non-privileged accesses to these |
| 92 | * tables. IA-32 segmentation is used to protect against IA-32 accesses to them. | 92 | * tables. IA-32 segmentation is used to protect against IA-32 accesses to them. |
| 93 | */ | 93 | */ |
| 94 | vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 94 | vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 95 | if (vma) { | 95 | if (vma) { |
| 96 | memset(vma, 0, sizeof(*vma)); | 96 | memset(vma, 0, sizeof(*vma)); |
| 97 | vma->vm_mm = current->mm; | 97 | vma->vm_mm = current->mm; |
| @@ -117,7 +117,7 @@ ia64_elf32_init (struct pt_regs *regs) | |||
| 117 | * code is locked in specific gate page, which is pointed by pretcode | 117 | * code is locked in specific gate page, which is pointed by pretcode |
| 118 | * when setup_frame_ia32 | 118 | * when setup_frame_ia32 |
| 119 | */ | 119 | */ |
| 120 | vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 120 | vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 121 | if (vma) { | 121 | if (vma) { |
| 122 | memset(vma, 0, sizeof(*vma)); | 122 | memset(vma, 0, sizeof(*vma)); |
| 123 | vma->vm_mm = current->mm; | 123 | vma->vm_mm = current->mm; |
| @@ -142,7 +142,7 @@ ia64_elf32_init (struct pt_regs *regs) | |||
| 142 | * Install LDT as anonymous memory. This gives us all-zero segment descriptors | 142 | * Install LDT as anonymous memory. This gives us all-zero segment descriptors |
| 143 | * until a task modifies them via modify_ldt(). | 143 | * until a task modifies them via modify_ldt(). |
| 144 | */ | 144 | */ |
| 145 | vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 145 | vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 146 | if (vma) { | 146 | if (vma) { |
| 147 | memset(vma, 0, sizeof(*vma)); | 147 | memset(vma, 0, sizeof(*vma)); |
| 148 | vma->vm_mm = current->mm; | 148 | vma->vm_mm = current->mm; |
| @@ -214,7 +214,7 @@ ia32_setup_arg_pages (struct linux_binprm *bprm, int executable_stack) | |||
| 214 | bprm->loader += stack_base; | 214 | bprm->loader += stack_base; |
| 215 | bprm->exec += stack_base; | 215 | bprm->exec += stack_base; |
| 216 | 216 | ||
| 217 | mpnt = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 217 | mpnt = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 218 | if (!mpnt) | 218 | if (!mpnt) |
| 219 | return -ENOMEM; | 219 | return -ENOMEM; |
| 220 | 220 | ||
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index 3aaede0d6981..e2321536ee4c 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c | |||
| @@ -2302,7 +2302,7 @@ pfm_smpl_buffer_alloc(struct task_struct *task, pfm_context_t *ctx, unsigned lon | |||
| 2302 | DPRINT(("smpl_buf @%p\n", smpl_buf)); | 2302 | DPRINT(("smpl_buf @%p\n", smpl_buf)); |
| 2303 | 2303 | ||
| 2304 | /* allocate vma */ | 2304 | /* allocate vma */ |
| 2305 | vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 2305 | vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 2306 | if (!vma) { | 2306 | if (!vma) { |
| 2307 | DPRINT(("Cannot allocate vma\n")); | 2307 | DPRINT(("Cannot allocate vma\n")); |
| 2308 | goto error_kmem; | 2308 | goto error_kmem; |
diff --git a/arch/ia64/mm/init.c b/arch/ia64/mm/init.c index ff87a5cba399..56dc2024220e 100644 --- a/arch/ia64/mm/init.c +++ b/arch/ia64/mm/init.c | |||
| @@ -156,7 +156,7 @@ ia64_init_addr_space (void) | |||
| 156 | * the problem. When the process attempts to write to the register backing store | 156 | * the problem. When the process attempts to write to the register backing store |
| 157 | * for the first time, it will get a SEGFAULT in this case. | 157 | * for the first time, it will get a SEGFAULT in this case. |
| 158 | */ | 158 | */ |
| 159 | vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 159 | vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 160 | if (vma) { | 160 | if (vma) { |
| 161 | memset(vma, 0, sizeof(*vma)); | 161 | memset(vma, 0, sizeof(*vma)); |
| 162 | vma->vm_mm = current->mm; | 162 | vma->vm_mm = current->mm; |
| @@ -175,7 +175,7 @@ ia64_init_addr_space (void) | |||
| 175 | 175 | ||
| 176 | /* map NaT-page at address zero to speed up speculative dereferencing of NULL: */ | 176 | /* map NaT-page at address zero to speed up speculative dereferencing of NULL: */ |
| 177 | if (!(current->personality & MMAP_PAGE_ZERO)) { | 177 | if (!(current->personality & MMAP_PAGE_ZERO)) { |
| 178 | vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 178 | vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 179 | if (vma) { | 179 | if (vma) { |
| 180 | memset(vma, 0, sizeof(*vma)); | 180 | memset(vma, 0, sizeof(*vma)); |
| 181 | vma->vm_mm = current->mm; | 181 | vma->vm_mm = current->mm; |
diff --git a/arch/powerpc/kernel/vdso.c b/arch/powerpc/kernel/vdso.c index c913ad5cad29..a4b28c73bba0 100644 --- a/arch/powerpc/kernel/vdso.c +++ b/arch/powerpc/kernel/vdso.c | |||
| @@ -264,7 +264,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, | |||
| 264 | 264 | ||
| 265 | 265 | ||
| 266 | /* Allocate a VMA structure and fill it up */ | 266 | /* Allocate a VMA structure and fill it up */ |
| 267 | vma = kmem_cache_zalloc(vm_area_cachep, SLAB_KERNEL); | 267 | vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL); |
| 268 | if (vma == NULL) { | 268 | if (vma == NULL) { |
| 269 | rc = -ENOMEM; | 269 | rc = -ENOMEM; |
| 270 | goto fail_mmapsem; | 270 | goto fail_mmapsem; |
diff --git a/arch/powerpc/platforms/cell/spufs/inode.c b/arch/powerpc/platforms/cell/spufs/inode.c index c7d010749a18..7edfcc9d2853 100644 --- a/arch/powerpc/platforms/cell/spufs/inode.c +++ b/arch/powerpc/platforms/cell/spufs/inode.c | |||
| @@ -48,7 +48,7 @@ spufs_alloc_inode(struct super_block *sb) | |||
| 48 | { | 48 | { |
| 49 | struct spufs_inode_info *ei; | 49 | struct spufs_inode_info *ei; |
| 50 | 50 | ||
| 51 | ei = kmem_cache_alloc(spufs_inode_cache, SLAB_KERNEL); | 51 | ei = kmem_cache_alloc(spufs_inode_cache, GFP_KERNEL); |
| 52 | if (!ei) | 52 | if (!ei) |
| 53 | return NULL; | 53 | return NULL; |
| 54 | 54 | ||
diff --git a/arch/sh/kernel/vsyscall/vsyscall.c b/arch/sh/kernel/vsyscall/vsyscall.c index 075d6cc1a2d7..deb46941f315 100644 --- a/arch/sh/kernel/vsyscall/vsyscall.c +++ b/arch/sh/kernel/vsyscall/vsyscall.c | |||
| @@ -97,7 +97,7 @@ int arch_setup_additional_pages(struct linux_binprm *bprm, | |||
| 97 | goto up_fail; | 97 | goto up_fail; |
| 98 | } | 98 | } |
| 99 | 99 | ||
| 100 | vma = kmem_cache_zalloc(vm_area_cachep, SLAB_KERNEL); | 100 | vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL); |
| 101 | if (!vma) { | 101 | if (!vma) { |
| 102 | ret = -ENOMEM; | 102 | ret = -ENOMEM; |
| 103 | goto up_fail; | 103 | goto up_fail; |
diff --git a/arch/x86_64/ia32/ia32_binfmt.c b/arch/x86_64/ia32/ia32_binfmt.c index 82ef182de6ae..932a62ad6c83 100644 --- a/arch/x86_64/ia32/ia32_binfmt.c +++ b/arch/x86_64/ia32/ia32_binfmt.c | |||
| @@ -351,7 +351,7 @@ int ia32_setup_arg_pages(struct linux_binprm *bprm, unsigned long stack_top, | |||
| 351 | bprm->loader += stack_base; | 351 | bprm->loader += stack_base; |
| 352 | bprm->exec += stack_base; | 352 | bprm->exec += stack_base; |
| 353 | 353 | ||
| 354 | mpnt = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 354 | mpnt = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 355 | if (!mpnt) | 355 | if (!mpnt) |
| 356 | return -ENOMEM; | 356 | return -ENOMEM; |
| 357 | 357 | ||
diff --git a/arch/x86_64/ia32/syscall32.c b/arch/x86_64/ia32/syscall32.c index 3a01329473ab..3e5ed20cba45 100644 --- a/arch/x86_64/ia32/syscall32.c +++ b/arch/x86_64/ia32/syscall32.c | |||
| @@ -49,7 +49,7 @@ int syscall32_setup_pages(struct linux_binprm *bprm, int exstack) | |||
| 49 | struct mm_struct *mm = current->mm; | 49 | struct mm_struct *mm = current->mm; |
| 50 | int ret; | 50 | int ret; |
| 51 | 51 | ||
| 52 | vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 52 | vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 53 | if (!vma) | 53 | if (!vma) |
| 54 | return -ENOMEM; | 54 | return -ENOMEM; |
| 55 | 55 | ||
diff --git a/drivers/atm/he.c b/drivers/atm/he.c index 2a2f0fc2288f..ec8a7a633e68 100644 --- a/drivers/atm/he.c +++ b/drivers/atm/he.c | |||
| @@ -820,7 +820,7 @@ he_init_group(struct he_dev *he_dev, int group) | |||
| 820 | void *cpuaddr; | 820 | void *cpuaddr; |
| 821 | 821 | ||
| 822 | #ifdef USE_RBPS_POOL | 822 | #ifdef USE_RBPS_POOL |
| 823 | cpuaddr = pci_pool_alloc(he_dev->rbps_pool, SLAB_KERNEL|SLAB_DMA, &dma_handle); | 823 | cpuaddr = pci_pool_alloc(he_dev->rbps_pool, GFP_KERNEL|SLAB_DMA, &dma_handle); |
| 824 | if (cpuaddr == NULL) | 824 | if (cpuaddr == NULL) |
| 825 | return -ENOMEM; | 825 | return -ENOMEM; |
| 826 | #else | 826 | #else |
| @@ -884,7 +884,7 @@ he_init_group(struct he_dev *he_dev, int group) | |||
| 884 | void *cpuaddr; | 884 | void *cpuaddr; |
| 885 | 885 | ||
| 886 | #ifdef USE_RBPL_POOL | 886 | #ifdef USE_RBPL_POOL |
| 887 | cpuaddr = pci_pool_alloc(he_dev->rbpl_pool, SLAB_KERNEL|SLAB_DMA, &dma_handle); | 887 | cpuaddr = pci_pool_alloc(he_dev->rbpl_pool, GFP_KERNEL|SLAB_DMA, &dma_handle); |
| 888 | if (cpuaddr == NULL) | 888 | if (cpuaddr == NULL) |
| 889 | return -ENOMEM; | 889 | return -ENOMEM; |
| 890 | #else | 890 | #else |
diff --git a/drivers/base/dmapool.c b/drivers/base/dmapool.c index fa4675254f67..dbe0735f8c9e 100644 --- a/drivers/base/dmapool.c +++ b/drivers/base/dmapool.c | |||
| @@ -126,7 +126,7 @@ dma_pool_create (const char *name, struct device *dev, | |||
| 126 | } else if (allocation < size) | 126 | } else if (allocation < size) |
| 127 | return NULL; | 127 | return NULL; |
| 128 | 128 | ||
| 129 | if (!(retval = kmalloc (sizeof *retval, SLAB_KERNEL))) | 129 | if (!(retval = kmalloc (sizeof *retval, GFP_KERNEL))) |
| 130 | return retval; | 130 | return retval; |
| 131 | 131 | ||
| 132 | strlcpy (retval->name, name, sizeof retval->name); | 132 | strlcpy (retval->name, name, sizeof retval->name); |
diff --git a/drivers/dma/ioatdma.c b/drivers/dma/ioatdma.c index 0358419a0e48..8e8726104619 100644 --- a/drivers/dma/ioatdma.c +++ b/drivers/dma/ioatdma.c | |||
| @@ -636,10 +636,10 @@ static int ioat_self_test(struct ioat_device *device) | |||
| 636 | dma_cookie_t cookie; | 636 | dma_cookie_t cookie; |
| 637 | int err = 0; | 637 | int err = 0; |
| 638 | 638 | ||
| 639 | src = kzalloc(sizeof(u8) * IOAT_TEST_SIZE, SLAB_KERNEL); | 639 | src = kzalloc(sizeof(u8) * IOAT_TEST_SIZE, GFP_KERNEL); |
| 640 | if (!src) | 640 | if (!src) |
| 641 | return -ENOMEM; | 641 | return -ENOMEM; |
| 642 | dest = kzalloc(sizeof(u8) * IOAT_TEST_SIZE, SLAB_KERNEL); | 642 | dest = kzalloc(sizeof(u8) * IOAT_TEST_SIZE, GFP_KERNEL); |
| 643 | if (!dest) { | 643 | if (!dest) { |
| 644 | kfree(src); | 644 | kfree(src); |
| 645 | return -ENOMEM; | 645 | return -ENOMEM; |
diff --git a/drivers/ieee1394/hosts.c b/drivers/ieee1394/hosts.c index 8f4378a1631c..b935e08695a9 100644 --- a/drivers/ieee1394/hosts.c +++ b/drivers/ieee1394/hosts.c | |||
| @@ -123,7 +123,7 @@ struct hpsb_host *hpsb_alloc_host(struct hpsb_host_driver *drv, size_t extra, | |||
| 123 | int i; | 123 | int i; |
| 124 | int hostnum = 0; | 124 | int hostnum = 0; |
| 125 | 125 | ||
| 126 | h = kzalloc(sizeof(*h) + extra, SLAB_KERNEL); | 126 | h = kzalloc(sizeof(*h) + extra, GFP_KERNEL); |
| 127 | if (!h) | 127 | if (!h) |
| 128 | return NULL; | 128 | return NULL; |
| 129 | 129 | ||
diff --git a/drivers/ieee1394/ohci1394.c b/drivers/ieee1394/ohci1394.c index 6e8ea9110c46..eae97d8dcf03 100644 --- a/drivers/ieee1394/ohci1394.c +++ b/drivers/ieee1394/ohci1394.c | |||
| @@ -1225,7 +1225,7 @@ static int ohci_iso_recv_init(struct hpsb_iso *iso) | |||
| 1225 | int ctx; | 1225 | int ctx; |
| 1226 | int ret = -ENOMEM; | 1226 | int ret = -ENOMEM; |
| 1227 | 1227 | ||
| 1228 | recv = kmalloc(sizeof(*recv), SLAB_KERNEL); | 1228 | recv = kmalloc(sizeof(*recv), GFP_KERNEL); |
| 1229 | if (!recv) | 1229 | if (!recv) |
| 1230 | return -ENOMEM; | 1230 | return -ENOMEM; |
| 1231 | 1231 | ||
| @@ -1918,7 +1918,7 @@ static int ohci_iso_xmit_init(struct hpsb_iso *iso) | |||
| 1918 | int ctx; | 1918 | int ctx; |
| 1919 | int ret = -ENOMEM; | 1919 | int ret = -ENOMEM; |
| 1920 | 1920 | ||
| 1921 | xmit = kmalloc(sizeof(*xmit), SLAB_KERNEL); | 1921 | xmit = kmalloc(sizeof(*xmit), GFP_KERNEL); |
| 1922 | if (!xmit) | 1922 | if (!xmit) |
| 1923 | return -ENOMEM; | 1923 | return -ENOMEM; |
| 1924 | 1924 | ||
| @@ -3021,7 +3021,7 @@ alloc_dma_rcv_ctx(struct ti_ohci *ohci, struct dma_rcv_ctx *d, | |||
| 3021 | return -ENOMEM; | 3021 | return -ENOMEM; |
| 3022 | } | 3022 | } |
| 3023 | 3023 | ||
| 3024 | d->prg_cpu[i] = pci_pool_alloc(d->prg_pool, SLAB_KERNEL, d->prg_bus+i); | 3024 | d->prg_cpu[i] = pci_pool_alloc(d->prg_pool, GFP_KERNEL, d->prg_bus+i); |
| 3025 | OHCI_DMA_ALLOC("pool dma_rcv prg[%d]", i); | 3025 | OHCI_DMA_ALLOC("pool dma_rcv prg[%d]", i); |
| 3026 | 3026 | ||
| 3027 | if (d->prg_cpu[i] != NULL) { | 3027 | if (d->prg_cpu[i] != NULL) { |
| @@ -3117,7 +3117,7 @@ alloc_dma_trm_ctx(struct ti_ohci *ohci, struct dma_trm_ctx *d, | |||
| 3117 | OHCI_DMA_ALLOC("dma_rcv prg pool"); | 3117 | OHCI_DMA_ALLOC("dma_rcv prg pool"); |
| 3118 | 3118 | ||
| 3119 | for (i = 0; i < d->num_desc; i++) { | 3119 | for (i = 0; i < d->num_desc; i++) { |
| 3120 | d->prg_cpu[i] = pci_pool_alloc(d->prg_pool, SLAB_KERNEL, d->prg_bus+i); | 3120 | d->prg_cpu[i] = pci_pool_alloc(d->prg_pool, GFP_KERNEL, d->prg_bus+i); |
| 3121 | OHCI_DMA_ALLOC("pool dma_trm prg[%d]", i); | 3121 | OHCI_DMA_ALLOC("pool dma_trm prg[%d]", i); |
| 3122 | 3122 | ||
| 3123 | if (d->prg_cpu[i] != NULL) { | 3123 | if (d->prg_cpu[i] != NULL) { |
diff --git a/drivers/ieee1394/pcilynx.c b/drivers/ieee1394/pcilynx.c index 0a7412e27eb4..9cab1d661472 100644 --- a/drivers/ieee1394/pcilynx.c +++ b/drivers/ieee1394/pcilynx.c | |||
| @@ -1428,7 +1428,7 @@ static int __devinit add_card(struct pci_dev *dev, | |||
| 1428 | struct i2c_algo_bit_data i2c_adapter_data; | 1428 | struct i2c_algo_bit_data i2c_adapter_data; |
| 1429 | 1429 | ||
| 1430 | error = -ENOMEM; | 1430 | error = -ENOMEM; |
| 1431 | i2c_ad = kmalloc(sizeof(*i2c_ad), SLAB_KERNEL); | 1431 | i2c_ad = kmalloc(sizeof(*i2c_ad), GFP_KERNEL); |
| 1432 | if (!i2c_ad) FAIL("failed to allocate I2C adapter memory"); | 1432 | if (!i2c_ad) FAIL("failed to allocate I2C adapter memory"); |
| 1433 | 1433 | ||
| 1434 | memcpy(i2c_ad, &bit_ops, sizeof(struct i2c_adapter)); | 1434 | memcpy(i2c_ad, &bit_ops, sizeof(struct i2c_adapter)); |
diff --git a/drivers/ieee1394/raw1394.c b/drivers/ieee1394/raw1394.c index 47f6a4e29b40..bf71e069eaf5 100644 --- a/drivers/ieee1394/raw1394.c +++ b/drivers/ieee1394/raw1394.c | |||
| @@ -112,7 +112,7 @@ static struct pending_request *__alloc_pending_request(gfp_t flags) | |||
| 112 | 112 | ||
| 113 | static inline struct pending_request *alloc_pending_request(void) | 113 | static inline struct pending_request *alloc_pending_request(void) |
| 114 | { | 114 | { |
| 115 | return __alloc_pending_request(SLAB_KERNEL); | 115 | return __alloc_pending_request(GFP_KERNEL); |
| 116 | } | 116 | } |
| 117 | 117 | ||
| 118 | static void free_pending_request(struct pending_request *req) | 118 | static void free_pending_request(struct pending_request *req) |
| @@ -1737,7 +1737,7 @@ static int arm_register(struct file_info *fi, struct pending_request *req) | |||
| 1737 | return (-EINVAL); | 1737 | return (-EINVAL); |
| 1738 | } | 1738 | } |
| 1739 | /* addr-list-entry for fileinfo */ | 1739 | /* addr-list-entry for fileinfo */ |
| 1740 | addr = kmalloc(sizeof(*addr), SLAB_KERNEL); | 1740 | addr = kmalloc(sizeof(*addr), GFP_KERNEL); |
| 1741 | if (!addr) { | 1741 | if (!addr) { |
| 1742 | req->req.length = 0; | 1742 | req->req.length = 0; |
| 1743 | return (-ENOMEM); | 1743 | return (-ENOMEM); |
| @@ -2103,7 +2103,7 @@ static int write_phypacket(struct file_info *fi, struct pending_request *req) | |||
| 2103 | static int get_config_rom(struct file_info *fi, struct pending_request *req) | 2103 | static int get_config_rom(struct file_info *fi, struct pending_request *req) |
| 2104 | { | 2104 | { |
| 2105 | int ret = sizeof(struct raw1394_request); | 2105 | int ret = sizeof(struct raw1394_request); |
| 2106 | quadlet_t *data = kmalloc(req->req.length, SLAB_KERNEL); | 2106 | quadlet_t *data = kmalloc(req->req.length, GFP_KERNEL); |
| 2107 | int status; | 2107 | int status; |
| 2108 | 2108 | ||
| 2109 | if (!data) | 2109 | if (!data) |
| @@ -2133,7 +2133,7 @@ static int get_config_rom(struct file_info *fi, struct pending_request *req) | |||
| 2133 | static int update_config_rom(struct file_info *fi, struct pending_request *req) | 2133 | static int update_config_rom(struct file_info *fi, struct pending_request *req) |
| 2134 | { | 2134 | { |
| 2135 | int ret = sizeof(struct raw1394_request); | 2135 | int ret = sizeof(struct raw1394_request); |
| 2136 | quadlet_t *data = kmalloc(req->req.length, SLAB_KERNEL); | 2136 | quadlet_t *data = kmalloc(req->req.length, GFP_KERNEL); |
| 2137 | if (!data) | 2137 | if (!data) |
| 2138 | return -ENOMEM; | 2138 | return -ENOMEM; |
| 2139 | if (copy_from_user(data, int2ptr(req->req.sendb), req->req.length)) { | 2139 | if (copy_from_user(data, int2ptr(req->req.sendb), req->req.length)) { |
| @@ -2779,7 +2779,7 @@ static int raw1394_open(struct inode *inode, struct file *file) | |||
| 2779 | { | 2779 | { |
| 2780 | struct file_info *fi; | 2780 | struct file_info *fi; |
| 2781 | 2781 | ||
| 2782 | fi = kzalloc(sizeof(*fi), SLAB_KERNEL); | 2782 | fi = kzalloc(sizeof(*fi), GFP_KERNEL); |
| 2783 | if (!fi) | 2783 | if (!fi) |
| 2784 | return -ENOMEM; | 2784 | return -ENOMEM; |
| 2785 | 2785 | ||
diff --git a/drivers/infiniband/hw/ehca/ehca_av.c b/drivers/infiniband/hw/ehca/ehca_av.c index 214e2fdddeef..0d6e2c4bb245 100644 --- a/drivers/infiniband/hw/ehca/ehca_av.c +++ b/drivers/infiniband/hw/ehca/ehca_av.c | |||
| @@ -57,7 +57,7 @@ struct ib_ah *ehca_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr) | |||
| 57 | struct ehca_shca *shca = container_of(pd->device, struct ehca_shca, | 57 | struct ehca_shca *shca = container_of(pd->device, struct ehca_shca, |
| 58 | ib_device); | 58 | ib_device); |
| 59 | 59 | ||
| 60 | av = kmem_cache_alloc(av_cache, SLAB_KERNEL); | 60 | av = kmem_cache_alloc(av_cache, GFP_KERNEL); |
| 61 | if (!av) { | 61 | if (!av) { |
| 62 | ehca_err(pd->device, "Out of memory pd=%p ah_attr=%p", | 62 | ehca_err(pd->device, "Out of memory pd=%p ah_attr=%p", |
| 63 | pd, ah_attr); | 63 | pd, ah_attr); |
diff --git a/drivers/infiniband/hw/ehca/ehca_cq.c b/drivers/infiniband/hw/ehca/ehca_cq.c index 458fe19648a1..93995b658d94 100644 --- a/drivers/infiniband/hw/ehca/ehca_cq.c +++ b/drivers/infiniband/hw/ehca/ehca_cq.c | |||
| @@ -134,7 +134,7 @@ struct ib_cq *ehca_create_cq(struct ib_device *device, int cqe, | |||
| 134 | if (cqe >= 0xFFFFFFFF - 64 - additional_cqe) | 134 | if (cqe >= 0xFFFFFFFF - 64 - additional_cqe) |
| 135 | return ERR_PTR(-EINVAL); | 135 | return ERR_PTR(-EINVAL); |
| 136 | 136 | ||
| 137 | my_cq = kmem_cache_alloc(cq_cache, SLAB_KERNEL); | 137 | my_cq = kmem_cache_alloc(cq_cache, GFP_KERNEL); |
| 138 | if (!my_cq) { | 138 | if (!my_cq) { |
| 139 | ehca_err(device, "Out of memory for ehca_cq struct device=%p", | 139 | ehca_err(device, "Out of memory for ehca_cq struct device=%p", |
| 140 | device); | 140 | device); |
diff --git a/drivers/infiniband/hw/ehca/ehca_main.c b/drivers/infiniband/hw/ehca/ehca_main.c index 3d1c1c535038..cc47e4c13a18 100644 --- a/drivers/infiniband/hw/ehca/ehca_main.c +++ b/drivers/infiniband/hw/ehca/ehca_main.c | |||
| @@ -108,7 +108,7 @@ static struct kmem_cache *ctblk_cache = NULL; | |||
| 108 | 108 | ||
| 109 | void *ehca_alloc_fw_ctrlblock(void) | 109 | void *ehca_alloc_fw_ctrlblock(void) |
| 110 | { | 110 | { |
| 111 | void *ret = kmem_cache_zalloc(ctblk_cache, SLAB_KERNEL); | 111 | void *ret = kmem_cache_zalloc(ctblk_cache, GFP_KERNEL); |
| 112 | if (!ret) | 112 | if (!ret) |
| 113 | ehca_gen_err("Out of memory for ctblk"); | 113 | ehca_gen_err("Out of memory for ctblk"); |
| 114 | return ret; | 114 | return ret; |
diff --git a/drivers/infiniband/hw/ehca/ehca_mrmw.c b/drivers/infiniband/hw/ehca/ehca_mrmw.c index abce676c0ae0..0a5e2214cc5f 100644 --- a/drivers/infiniband/hw/ehca/ehca_mrmw.c +++ b/drivers/infiniband/hw/ehca/ehca_mrmw.c | |||
| @@ -53,7 +53,7 @@ static struct ehca_mr *ehca_mr_new(void) | |||
| 53 | { | 53 | { |
| 54 | struct ehca_mr *me; | 54 | struct ehca_mr *me; |
| 55 | 55 | ||
| 56 | me = kmem_cache_alloc(mr_cache, SLAB_KERNEL); | 56 | me = kmem_cache_alloc(mr_cache, GFP_KERNEL); |
| 57 | if (me) { | 57 | if (me) { |
| 58 | memset(me, 0, sizeof(struct ehca_mr)); | 58 | memset(me, 0, sizeof(struct ehca_mr)); |
| 59 | spin_lock_init(&me->mrlock); | 59 | spin_lock_init(&me->mrlock); |
| @@ -72,7 +72,7 @@ static struct ehca_mw *ehca_mw_new(void) | |||
| 72 | { | 72 | { |
| 73 | struct ehca_mw *me; | 73 | struct ehca_mw *me; |
| 74 | 74 | ||
| 75 | me = kmem_cache_alloc(mw_cache, SLAB_KERNEL); | 75 | me = kmem_cache_alloc(mw_cache, GFP_KERNEL); |
| 76 | if (me) { | 76 | if (me) { |
| 77 | memset(me, 0, sizeof(struct ehca_mw)); | 77 | memset(me, 0, sizeof(struct ehca_mw)); |
| 78 | spin_lock_init(&me->mwlock); | 78 | spin_lock_init(&me->mwlock); |
diff --git a/drivers/infiniband/hw/ehca/ehca_pd.c b/drivers/infiniband/hw/ehca/ehca_pd.c index 2c3cdc6f7b39..d5345e5b3cd6 100644 --- a/drivers/infiniband/hw/ehca/ehca_pd.c +++ b/drivers/infiniband/hw/ehca/ehca_pd.c | |||
| @@ -50,7 +50,7 @@ struct ib_pd *ehca_alloc_pd(struct ib_device *device, | |||
| 50 | { | 50 | { |
| 51 | struct ehca_pd *pd; | 51 | struct ehca_pd *pd; |
| 52 | 52 | ||
| 53 | pd = kmem_cache_alloc(pd_cache, SLAB_KERNEL); | 53 | pd = kmem_cache_alloc(pd_cache, GFP_KERNEL); |
| 54 | if (!pd) { | 54 | if (!pd) { |
| 55 | ehca_err(device, "device=%p context=%p out of memory", | 55 | ehca_err(device, "device=%p context=%p out of memory", |
| 56 | device, context); | 56 | device, context); |
diff --git a/drivers/infiniband/hw/ehca/ehca_qp.c b/drivers/infiniband/hw/ehca/ehca_qp.c index 8682aa50c707..c6c9cef203e3 100644 --- a/drivers/infiniband/hw/ehca/ehca_qp.c +++ b/drivers/infiniband/hw/ehca/ehca_qp.c | |||
| @@ -450,7 +450,7 @@ struct ib_qp *ehca_create_qp(struct ib_pd *pd, | |||
| 450 | if (pd->uobject && udata) | 450 | if (pd->uobject && udata) |
| 451 | context = pd->uobject->context; | 451 | context = pd->uobject->context; |
| 452 | 452 | ||
| 453 | my_qp = kmem_cache_alloc(qp_cache, SLAB_KERNEL); | 453 | my_qp = kmem_cache_alloc(qp_cache, GFP_KERNEL); |
| 454 | if (!my_qp) { | 454 | if (!my_qp) { |
| 455 | ehca_err(pd->device, "pd=%p not enough memory to alloc qp", pd); | 455 | ehca_err(pd->device, "pd=%p not enough memory to alloc qp", pd); |
| 456 | return ERR_PTR(-ENOMEM); | 456 | return ERR_PTR(-ENOMEM); |
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c index f56d6a0f0624..0517c7387d67 100644 --- a/drivers/input/touchscreen/ads7846.c +++ b/drivers/input/touchscreen/ads7846.c | |||
| @@ -189,7 +189,7 @@ static int ads7846_read12_ser(struct device *dev, unsigned command) | |||
| 189 | { | 189 | { |
| 190 | struct spi_device *spi = to_spi_device(dev); | 190 | struct spi_device *spi = to_spi_device(dev); |
| 191 | struct ads7846 *ts = dev_get_drvdata(dev); | 191 | struct ads7846 *ts = dev_get_drvdata(dev); |
| 192 | struct ser_req *req = kzalloc(sizeof *req, SLAB_KERNEL); | 192 | struct ser_req *req = kzalloc(sizeof *req, GFP_KERNEL); |
| 193 | int status; | 193 | int status; |
| 194 | int sample; | 194 | int sample; |
| 195 | int i; | 195 | int i; |
diff --git a/drivers/isdn/gigaset/bas-gigaset.c b/drivers/isdn/gigaset/bas-gigaset.c index 5857e7e23f84..63b629b1cdb2 100644 --- a/drivers/isdn/gigaset/bas-gigaset.c +++ b/drivers/isdn/gigaset/bas-gigaset.c | |||
| @@ -2218,21 +2218,21 @@ static int gigaset_probe(struct usb_interface *interface, | |||
| 2218 | * - three for the different uses of the default control pipe | 2218 | * - three for the different uses of the default control pipe |
| 2219 | * - three for each isochronous pipe | 2219 | * - three for each isochronous pipe |
| 2220 | */ | 2220 | */ |
| 2221 | if (!(ucs->urb_int_in = usb_alloc_urb(0, SLAB_KERNEL)) || | 2221 | if (!(ucs->urb_int_in = usb_alloc_urb(0, GFP_KERNEL)) || |
| 2222 | !(ucs->urb_cmd_in = usb_alloc_urb(0, SLAB_KERNEL)) || | 2222 | !(ucs->urb_cmd_in = usb_alloc_urb(0, GFP_KERNEL)) || |
| 2223 | !(ucs->urb_cmd_out = usb_alloc_urb(0, SLAB_KERNEL)) || | 2223 | !(ucs->urb_cmd_out = usb_alloc_urb(0, GFP_KERNEL)) || |
| 2224 | !(ucs->urb_ctrl = usb_alloc_urb(0, SLAB_KERNEL))) | 2224 | !(ucs->urb_ctrl = usb_alloc_urb(0, GFP_KERNEL))) |
| 2225 | goto allocerr; | 2225 | goto allocerr; |
| 2226 | 2226 | ||
| 2227 | for (j = 0; j < 2; ++j) { | 2227 | for (j = 0; j < 2; ++j) { |
| 2228 | ubc = cs->bcs[j].hw.bas; | 2228 | ubc = cs->bcs[j].hw.bas; |
| 2229 | for (i = 0; i < BAS_OUTURBS; ++i) | 2229 | for (i = 0; i < BAS_OUTURBS; ++i) |
| 2230 | if (!(ubc->isoouturbs[i].urb = | 2230 | if (!(ubc->isoouturbs[i].urb = |
| 2231 | usb_alloc_urb(BAS_NUMFRAMES, SLAB_KERNEL))) | 2231 | usb_alloc_urb(BAS_NUMFRAMES, GFP_KERNEL))) |
| 2232 | goto allocerr; | 2232 | goto allocerr; |
| 2233 | for (i = 0; i < BAS_INURBS; ++i) | 2233 | for (i = 0; i < BAS_INURBS; ++i) |
| 2234 | if (!(ubc->isoinurbs[i] = | 2234 | if (!(ubc->isoinurbs[i] = |
| 2235 | usb_alloc_urb(BAS_NUMFRAMES, SLAB_KERNEL))) | 2235 | usb_alloc_urb(BAS_NUMFRAMES, GFP_KERNEL))) |
| 2236 | goto allocerr; | 2236 | goto allocerr; |
| 2237 | } | 2237 | } |
| 2238 | 2238 | ||
| @@ -2246,7 +2246,7 @@ static int gigaset_probe(struct usb_interface *interface, | |||
| 2246 | (endpoint->bEndpointAddress) & 0x0f), | 2246 | (endpoint->bEndpointAddress) & 0x0f), |
| 2247 | ucs->int_in_buf, 3, read_int_callback, cs, | 2247 | ucs->int_in_buf, 3, read_int_callback, cs, |
| 2248 | endpoint->bInterval); | 2248 | endpoint->bInterval); |
| 2249 | if ((rc = usb_submit_urb(ucs->urb_int_in, SLAB_KERNEL)) != 0) { | 2249 | if ((rc = usb_submit_urb(ucs->urb_int_in, GFP_KERNEL)) != 0) { |
| 2250 | dev_err(cs->dev, "could not submit interrupt URB: %s\n", | 2250 | dev_err(cs->dev, "could not submit interrupt URB: %s\n", |
| 2251 | get_usb_rcmsg(rc)); | 2251 | get_usb_rcmsg(rc)); |
| 2252 | goto error; | 2252 | goto error; |
diff --git a/drivers/isdn/gigaset/usb-gigaset.c b/drivers/isdn/gigaset/usb-gigaset.c index af89ce188f2a..04f2ad7ba8b0 100644 --- a/drivers/isdn/gigaset/usb-gigaset.c +++ b/drivers/isdn/gigaset/usb-gigaset.c | |||
| @@ -763,7 +763,7 @@ static int gigaset_probe(struct usb_interface *interface, | |||
| 763 | goto error; | 763 | goto error; |
| 764 | } | 764 | } |
| 765 | 765 | ||
| 766 | ucs->bulk_out_urb = usb_alloc_urb(0, SLAB_KERNEL); | 766 | ucs->bulk_out_urb = usb_alloc_urb(0, GFP_KERNEL); |
| 767 | if (!ucs->bulk_out_urb) { | 767 | if (!ucs->bulk_out_urb) { |
| 768 | dev_err(cs->dev, "Couldn't allocate bulk_out_urb\n"); | 768 | dev_err(cs->dev, "Couldn't allocate bulk_out_urb\n"); |
| 769 | retval = -ENOMEM; | 769 | retval = -ENOMEM; |
| @@ -774,7 +774,7 @@ static int gigaset_probe(struct usb_interface *interface, | |||
| 774 | 774 | ||
| 775 | atomic_set(&ucs->busy, 0); | 775 | atomic_set(&ucs->busy, 0); |
| 776 | 776 | ||
| 777 | ucs->read_urb = usb_alloc_urb(0, SLAB_KERNEL); | 777 | ucs->read_urb = usb_alloc_urb(0, GFP_KERNEL); |
| 778 | if (!ucs->read_urb) { | 778 | if (!ucs->read_urb) { |
| 779 | dev_err(cs->dev, "No free urbs available\n"); | 779 | dev_err(cs->dev, "No free urbs available\n"); |
| 780 | retval = -ENOMEM; | 780 | retval = -ENOMEM; |
| @@ -797,7 +797,7 @@ static int gigaset_probe(struct usb_interface *interface, | |||
| 797 | gigaset_read_int_callback, | 797 | gigaset_read_int_callback, |
| 798 | cs->inbuf + 0, endpoint->bInterval); | 798 | cs->inbuf + 0, endpoint->bInterval); |
| 799 | 799 | ||
| 800 | retval = usb_submit_urb(ucs->read_urb, SLAB_KERNEL); | 800 | retval = usb_submit_urb(ucs->read_urb, GFP_KERNEL); |
| 801 | if (retval) { | 801 | if (retval) { |
| 802 | dev_err(cs->dev, "Could not submit URB (error %d)\n", -retval); | 802 | dev_err(cs->dev, "Could not submit URB (error %d)\n", -retval); |
| 803 | goto error; | 803 | goto error; |
diff --git a/drivers/media/dvb/cinergyT2/cinergyT2.c b/drivers/media/dvb/cinergyT2/cinergyT2.c index 206c13e47a06..9123147e376f 100644 --- a/drivers/media/dvb/cinergyT2/cinergyT2.c +++ b/drivers/media/dvb/cinergyT2/cinergyT2.c | |||
| @@ -287,7 +287,7 @@ static int cinergyt2_alloc_stream_urbs (struct cinergyt2 *cinergyt2) | |||
| 287 | int i; | 287 | int i; |
| 288 | 288 | ||
| 289 | cinergyt2->streambuf = usb_buffer_alloc(cinergyt2->udev, STREAM_URB_COUNT*STREAM_BUF_SIZE, | 289 | cinergyt2->streambuf = usb_buffer_alloc(cinergyt2->udev, STREAM_URB_COUNT*STREAM_BUF_SIZE, |
| 290 | SLAB_KERNEL, &cinergyt2->streambuf_dmahandle); | 290 | GFP_KERNEL, &cinergyt2->streambuf_dmahandle); |
| 291 | if (!cinergyt2->streambuf) { | 291 | if (!cinergyt2->streambuf) { |
| 292 | dprintk(1, "failed to alloc consistent stream memory area, bailing out!\n"); | 292 | dprintk(1, "failed to alloc consistent stream memory area, bailing out!\n"); |
| 293 | return -ENOMEM; | 293 | return -ENOMEM; |
diff --git a/drivers/mtd/devices/m25p80.c b/drivers/mtd/devices/m25p80.c index ef4a731ca5c2..334e078ffaff 100644 --- a/drivers/mtd/devices/m25p80.c +++ b/drivers/mtd/devices/m25p80.c | |||
| @@ -451,7 +451,7 @@ static int __devinit m25p_probe(struct spi_device *spi) | |||
| 451 | return -ENODEV; | 451 | return -ENODEV; |
| 452 | } | 452 | } |
| 453 | 453 | ||
| 454 | flash = kzalloc(sizeof *flash, SLAB_KERNEL); | 454 | flash = kzalloc(sizeof *flash, GFP_KERNEL); |
| 455 | if (!flash) | 455 | if (!flash) |
| 456 | return -ENOMEM; | 456 | return -ENOMEM; |
| 457 | 457 | ||
diff --git a/drivers/scsi/ipr.c b/drivers/scsi/ipr.c index ccd4dafce8e2..b318500785e5 100644 --- a/drivers/scsi/ipr.c +++ b/drivers/scsi/ipr.c | |||
| @@ -6940,7 +6940,7 @@ static int __devinit ipr_alloc_cmd_blks(struct ipr_ioa_cfg *ioa_cfg) | |||
| 6940 | return -ENOMEM; | 6940 | return -ENOMEM; |
| 6941 | 6941 | ||
| 6942 | for (i = 0; i < IPR_NUM_CMD_BLKS; i++) { | 6942 | for (i = 0; i < IPR_NUM_CMD_BLKS; i++) { |
| 6943 | ipr_cmd = pci_pool_alloc (ioa_cfg->ipr_cmd_pool, SLAB_KERNEL, &dma_addr); | 6943 | ipr_cmd = pci_pool_alloc (ioa_cfg->ipr_cmd_pool, GFP_KERNEL, &dma_addr); |
| 6944 | 6944 | ||
| 6945 | if (!ipr_cmd) { | 6945 | if (!ipr_cmd) { |
| 6946 | ipr_free_cmd_blks(ioa_cfg); | 6946 | ipr_free_cmd_blks(ioa_cfg); |
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index c3c0626f550b..09f2c74a40c5 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c | |||
| @@ -360,7 +360,7 @@ spi_alloc_master(struct device *dev, unsigned size) | |||
| 360 | if (!dev) | 360 | if (!dev) |
| 361 | return NULL; | 361 | return NULL; |
| 362 | 362 | ||
| 363 | master = kzalloc(size + sizeof *master, SLAB_KERNEL); | 363 | master = kzalloc(size + sizeof *master, GFP_KERNEL); |
| 364 | if (!master) | 364 | if (!master) |
| 365 | return NULL; | 365 | return NULL; |
| 366 | 366 | ||
| @@ -607,7 +607,7 @@ static int __init spi_init(void) | |||
| 607 | { | 607 | { |
| 608 | int status; | 608 | int status; |
| 609 | 609 | ||
| 610 | buf = kmalloc(SPI_BUFSIZ, SLAB_KERNEL); | 610 | buf = kmalloc(SPI_BUFSIZ, GFP_KERNEL); |
| 611 | if (!buf) { | 611 | if (!buf) { |
| 612 | status = -ENOMEM; | 612 | status = -ENOMEM; |
| 613 | goto err0; | 613 | goto err0; |
diff --git a/drivers/spi/spi_bitbang.c b/drivers/spi/spi_bitbang.c index 08c1c57c6128..57289b61d0be 100644 --- a/drivers/spi/spi_bitbang.c +++ b/drivers/spi/spi_bitbang.c | |||
| @@ -196,7 +196,7 @@ int spi_bitbang_setup(struct spi_device *spi) | |||
| 196 | return -EINVAL; | 196 | return -EINVAL; |
| 197 | 197 | ||
| 198 | if (!cs) { | 198 | if (!cs) { |
| 199 | cs = kzalloc(sizeof *cs, SLAB_KERNEL); | 199 | cs = kzalloc(sizeof *cs, GFP_KERNEL); |
| 200 | if (!cs) | 200 | if (!cs) |
| 201 | return -ENOMEM; | 201 | return -ENOMEM; |
| 202 | spi->controller_state = cs; | 202 | spi->controller_state = cs; |
diff --git a/drivers/usb/core/hub.c b/drivers/usb/core/hub.c index 0a46acf557ac..77c05be5241a 100644 --- a/drivers/usb/core/hub.c +++ b/drivers/usb/core/hub.c | |||
| @@ -2371,7 +2371,7 @@ check_highspeed (struct usb_hub *hub, struct usb_device *udev, int port1) | |||
| 2371 | struct usb_qualifier_descriptor *qual; | 2371 | struct usb_qualifier_descriptor *qual; |
| 2372 | int status; | 2372 | int status; |
| 2373 | 2373 | ||
| 2374 | qual = kmalloc (sizeof *qual, SLAB_KERNEL); | 2374 | qual = kmalloc (sizeof *qual, GFP_KERNEL); |
| 2375 | if (qual == NULL) | 2375 | if (qual == NULL) |
| 2376 | return; | 2376 | return; |
| 2377 | 2377 | ||
| @@ -2922,7 +2922,7 @@ static int config_descriptors_changed(struct usb_device *udev) | |||
| 2922 | if (len < le16_to_cpu(udev->config[index].desc.wTotalLength)) | 2922 | if (len < le16_to_cpu(udev->config[index].desc.wTotalLength)) |
| 2923 | len = le16_to_cpu(udev->config[index].desc.wTotalLength); | 2923 | len = le16_to_cpu(udev->config[index].desc.wTotalLength); |
| 2924 | } | 2924 | } |
| 2925 | buf = kmalloc (len, SLAB_KERNEL); | 2925 | buf = kmalloc (len, GFP_KERNEL); |
| 2926 | if (buf == NULL) { | 2926 | if (buf == NULL) { |
| 2927 | dev_err(&udev->dev, "no mem to re-read configs after reset\n"); | 2927 | dev_err(&udev->dev, "no mem to re-read configs after reset\n"); |
| 2928 | /* assume the worst */ | 2928 | /* assume the worst */ |
diff --git a/drivers/usb/gadget/gmidi.c b/drivers/usb/gadget/gmidi.c index 64554acad63f..31351826f2ba 100644 --- a/drivers/usb/gadget/gmidi.c +++ b/drivers/usb/gadget/gmidi.c | |||
| @@ -1236,7 +1236,7 @@ autoconf_fail: | |||
| 1236 | 1236 | ||
| 1237 | 1237 | ||
| 1238 | /* ok, we made sense of the hardware ... */ | 1238 | /* ok, we made sense of the hardware ... */ |
| 1239 | dev = kzalloc(sizeof(*dev), SLAB_KERNEL); | 1239 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
| 1240 | if (!dev) { | 1240 | if (!dev) { |
| 1241 | return -ENOMEM; | 1241 | return -ENOMEM; |
| 1242 | } | 1242 | } |
diff --git a/drivers/usb/gadget/goku_udc.c b/drivers/usb/gadget/goku_udc.c index a3076da3f4eb..805a9826842d 100644 --- a/drivers/usb/gadget/goku_udc.c +++ b/drivers/usb/gadget/goku_udc.c | |||
| @@ -1864,7 +1864,7 @@ static int goku_probe(struct pci_dev *pdev, const struct pci_device_id *id) | |||
| 1864 | } | 1864 | } |
| 1865 | 1865 | ||
| 1866 | /* alloc, and start init */ | 1866 | /* alloc, and start init */ |
| 1867 | dev = kmalloc (sizeof *dev, SLAB_KERNEL); | 1867 | dev = kmalloc (sizeof *dev, GFP_KERNEL); |
| 1868 | if (dev == NULL){ | 1868 | if (dev == NULL){ |
| 1869 | pr_debug("enomem %s\n", pci_name(pdev)); | 1869 | pr_debug("enomem %s\n", pci_name(pdev)); |
| 1870 | retval = -ENOMEM; | 1870 | retval = -ENOMEM; |
diff --git a/drivers/usb/gadget/inode.c b/drivers/usb/gadget/inode.c index 86924f9cdd7e..3fb1044a4db0 100644 --- a/drivers/usb/gadget/inode.c +++ b/drivers/usb/gadget/inode.c | |||
| @@ -412,7 +412,7 @@ ep_read (struct file *fd, char __user *buf, size_t len, loff_t *ptr) | |||
| 412 | /* FIXME readahead for O_NONBLOCK and poll(); careful with ZLPs */ | 412 | /* FIXME readahead for O_NONBLOCK and poll(); careful with ZLPs */ |
| 413 | 413 | ||
| 414 | value = -ENOMEM; | 414 | value = -ENOMEM; |
| 415 | kbuf = kmalloc (len, SLAB_KERNEL); | 415 | kbuf = kmalloc (len, GFP_KERNEL); |
| 416 | if (unlikely (!kbuf)) | 416 | if (unlikely (!kbuf)) |
| 417 | goto free1; | 417 | goto free1; |
| 418 | 418 | ||
| @@ -456,7 +456,7 @@ ep_write (struct file *fd, const char __user *buf, size_t len, loff_t *ptr) | |||
| 456 | /* FIXME writebehind for O_NONBLOCK and poll(), qlen = 1 */ | 456 | /* FIXME writebehind for O_NONBLOCK and poll(), qlen = 1 */ |
| 457 | 457 | ||
| 458 | value = -ENOMEM; | 458 | value = -ENOMEM; |
| 459 | kbuf = kmalloc (len, SLAB_KERNEL); | 459 | kbuf = kmalloc (len, GFP_KERNEL); |
| 460 | if (!kbuf) | 460 | if (!kbuf) |
| 461 | goto free1; | 461 | goto free1; |
| 462 | if (copy_from_user (kbuf, buf, len)) { | 462 | if (copy_from_user (kbuf, buf, len)) { |
| @@ -1898,7 +1898,7 @@ dev_config (struct file *fd, const char __user *buf, size_t len, loff_t *ptr) | |||
| 1898 | buf += 4; | 1898 | buf += 4; |
| 1899 | length -= 4; | 1899 | length -= 4; |
| 1900 | 1900 | ||
| 1901 | kbuf = kmalloc (length, SLAB_KERNEL); | 1901 | kbuf = kmalloc (length, GFP_KERNEL); |
| 1902 | if (!kbuf) | 1902 | if (!kbuf) |
| 1903 | return -ENOMEM; | 1903 | return -ENOMEM; |
| 1904 | if (copy_from_user (kbuf, buf, length)) { | 1904 | if (copy_from_user (kbuf, buf, length)) { |
diff --git a/drivers/usb/gadget/net2280.c b/drivers/usb/gadget/net2280.c index 0b590831582c..3024c679e38e 100644 --- a/drivers/usb/gadget/net2280.c +++ b/drivers/usb/gadget/net2280.c | |||
| @@ -2861,7 +2861,7 @@ static int net2280_probe (struct pci_dev *pdev, const struct pci_device_id *id) | |||
| 2861 | } | 2861 | } |
| 2862 | 2862 | ||
| 2863 | /* alloc, and start init */ | 2863 | /* alloc, and start init */ |
| 2864 | dev = kzalloc (sizeof *dev, SLAB_KERNEL); | 2864 | dev = kzalloc (sizeof *dev, GFP_KERNEL); |
| 2865 | if (dev == NULL){ | 2865 | if (dev == NULL){ |
| 2866 | retval = -ENOMEM; | 2866 | retval = -ENOMEM; |
| 2867 | goto done; | 2867 | goto done; |
diff --git a/drivers/usb/gadget/omap_udc.c b/drivers/usb/gadget/omap_udc.c index 48a09fd89d18..030d87c28c2f 100644 --- a/drivers/usb/gadget/omap_udc.c +++ b/drivers/usb/gadget/omap_udc.c | |||
| @@ -2581,7 +2581,7 @@ omap_udc_setup(struct platform_device *odev, struct otg_transceiver *xceiv) | |||
| 2581 | /* UDC_PULLUP_EN gates the chip clock */ | 2581 | /* UDC_PULLUP_EN gates the chip clock */ |
| 2582 | // OTG_SYSCON_1_REG |= DEV_IDLE_EN; | 2582 | // OTG_SYSCON_1_REG |= DEV_IDLE_EN; |
| 2583 | 2583 | ||
| 2584 | udc = kzalloc(sizeof(*udc), SLAB_KERNEL); | 2584 | udc = kzalloc(sizeof(*udc), GFP_KERNEL); |
| 2585 | if (!udc) | 2585 | if (!udc) |
| 2586 | return -ENOMEM; | 2586 | return -ENOMEM; |
| 2587 | 2587 | ||
diff --git a/drivers/usb/gadget/zero.c b/drivers/usb/gadget/zero.c index 0f809dd68492..40710ea1b490 100644 --- a/drivers/usb/gadget/zero.c +++ b/drivers/usb/gadget/zero.c | |||
| @@ -1190,7 +1190,7 @@ autoconf_fail: | |||
| 1190 | 1190 | ||
| 1191 | 1191 | ||
| 1192 | /* ok, we made sense of the hardware ... */ | 1192 | /* ok, we made sense of the hardware ... */ |
| 1193 | dev = kzalloc(sizeof(*dev), SLAB_KERNEL); | 1193 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
| 1194 | if (!dev) | 1194 | if (!dev) |
| 1195 | return -ENOMEM; | 1195 | return -ENOMEM; |
| 1196 | spin_lock_init (&dev->lock); | 1196 | spin_lock_init (&dev->lock); |
diff --git a/drivers/usb/host/hc_crisv10.c b/drivers/usb/host/hc_crisv10.c index 396dc69d4b4c..7fd872aa654a 100644 --- a/drivers/usb/host/hc_crisv10.c +++ b/drivers/usb/host/hc_crisv10.c | |||
| @@ -188,7 +188,7 @@ static DEFINE_TIMER(bulk_eot_timer, NULL, 0, 0); | |||
| 188 | #define CHECK_ALIGN(x) if (((__u32)(x)) & 0x00000003) \ | 188 | #define CHECK_ALIGN(x) if (((__u32)(x)) & 0x00000003) \ |
| 189 | {panic("Alignment check (DWORD) failed at %s:%s:%d\n", __FILE__, __FUNCTION__, __LINE__);} | 189 | {panic("Alignment check (DWORD) failed at %s:%s:%d\n", __FILE__, __FUNCTION__, __LINE__);} |
| 190 | 190 | ||
| 191 | #define SLAB_FLAG (in_interrupt() ? GFP_ATOMIC : SLAB_KERNEL) | 191 | #define SLAB_FLAG (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL) |
| 192 | #define KMALLOC_FLAG (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL) | 192 | #define KMALLOC_FLAG (in_interrupt() ? GFP_ATOMIC : GFP_KERNEL) |
| 193 | 193 | ||
| 194 | /* Most helpful debugging aid */ | 194 | /* Most helpful debugging aid */ |
diff --git a/drivers/usb/host/ohci-pnx4008.c b/drivers/usb/host/ohci-pnx4008.c index 2dbb77414905..7f26f9bdbaf1 100644 --- a/drivers/usb/host/ohci-pnx4008.c +++ b/drivers/usb/host/ohci-pnx4008.c | |||
| @@ -134,7 +134,7 @@ static int isp1301_attach(struct i2c_adapter *adap, int addr, int kind) | |||
| 134 | { | 134 | { |
| 135 | struct i2c_client *c; | 135 | struct i2c_client *c; |
| 136 | 136 | ||
| 137 | c = (struct i2c_client *)kzalloc(sizeof(*c), SLAB_KERNEL); | 137 | c = (struct i2c_client *)kzalloc(sizeof(*c), GFP_KERNEL); |
| 138 | 138 | ||
| 139 | if (!c) | 139 | if (!c) |
| 140 | return -ENOMEM; | 140 | return -ENOMEM; |
diff --git a/drivers/usb/input/acecad.c b/drivers/usb/input/acecad.c index 0096373b5f98..909138e5aa04 100644 --- a/drivers/usb/input/acecad.c +++ b/drivers/usb/input/acecad.c | |||
| @@ -152,7 +152,7 @@ static int usb_acecad_probe(struct usb_interface *intf, const struct usb_device_ | |||
| 152 | if (!acecad || !input_dev) | 152 | if (!acecad || !input_dev) |
| 153 | goto fail1; | 153 | goto fail1; |
| 154 | 154 | ||
| 155 | acecad->data = usb_buffer_alloc(dev, 8, SLAB_KERNEL, &acecad->data_dma); | 155 | acecad->data = usb_buffer_alloc(dev, 8, GFP_KERNEL, &acecad->data_dma); |
| 156 | if (!acecad->data) | 156 | if (!acecad->data) |
| 157 | goto fail1; | 157 | goto fail1; |
| 158 | 158 | ||
diff --git a/drivers/usb/input/usbtouchscreen.c b/drivers/usb/input/usbtouchscreen.c index 49704d4ed0e2..7f3c57da9bc0 100644 --- a/drivers/usb/input/usbtouchscreen.c +++ b/drivers/usb/input/usbtouchscreen.c | |||
| @@ -680,7 +680,7 @@ static int usbtouch_probe(struct usb_interface *intf, | |||
| 680 | type->process_pkt = usbtouch_process_pkt; | 680 | type->process_pkt = usbtouch_process_pkt; |
| 681 | 681 | ||
| 682 | usbtouch->data = usb_buffer_alloc(udev, type->rept_size, | 682 | usbtouch->data = usb_buffer_alloc(udev, type->rept_size, |
| 683 | SLAB_KERNEL, &usbtouch->data_dma); | 683 | GFP_KERNEL, &usbtouch->data_dma); |
| 684 | if (!usbtouch->data) | 684 | if (!usbtouch->data) |
| 685 | goto out_free; | 685 | goto out_free; |
| 686 | 686 | ||
diff --git a/drivers/usb/misc/usbtest.c b/drivers/usb/misc/usbtest.c index ea04dccdc651..fb321864a92d 100644 --- a/drivers/usb/misc/usbtest.c +++ b/drivers/usb/misc/usbtest.c | |||
| @@ -213,7 +213,7 @@ static struct urb *simple_alloc_urb ( | |||
| 213 | 213 | ||
| 214 | if (bytes < 0) | 214 | if (bytes < 0) |
| 215 | return NULL; | 215 | return NULL; |
| 216 | urb = usb_alloc_urb (0, SLAB_KERNEL); | 216 | urb = usb_alloc_urb (0, GFP_KERNEL); |
| 217 | if (!urb) | 217 | if (!urb) |
| 218 | return urb; | 218 | return urb; |
| 219 | usb_fill_bulk_urb (urb, udev, pipe, NULL, bytes, simple_callback, NULL); | 219 | usb_fill_bulk_urb (urb, udev, pipe, NULL, bytes, simple_callback, NULL); |
| @@ -223,7 +223,7 @@ static struct urb *simple_alloc_urb ( | |||
| 223 | urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; | 223 | urb->transfer_flags = URB_NO_TRANSFER_DMA_MAP; |
| 224 | if (usb_pipein (pipe)) | 224 | if (usb_pipein (pipe)) |
| 225 | urb->transfer_flags |= URB_SHORT_NOT_OK; | 225 | urb->transfer_flags |= URB_SHORT_NOT_OK; |
| 226 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, SLAB_KERNEL, | 226 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, GFP_KERNEL, |
| 227 | &urb->transfer_dma); | 227 | &urb->transfer_dma); |
| 228 | if (!urb->transfer_buffer) { | 228 | if (!urb->transfer_buffer) { |
| 229 | usb_free_urb (urb); | 229 | usb_free_urb (urb); |
| @@ -315,7 +315,7 @@ static int simple_io ( | |||
| 315 | init_completion (&completion); | 315 | init_completion (&completion); |
| 316 | if (usb_pipeout (urb->pipe)) | 316 | if (usb_pipeout (urb->pipe)) |
| 317 | simple_fill_buf (urb); | 317 | simple_fill_buf (urb); |
| 318 | if ((retval = usb_submit_urb (urb, SLAB_KERNEL)) != 0) | 318 | if ((retval = usb_submit_urb (urb, GFP_KERNEL)) != 0) |
| 319 | break; | 319 | break; |
| 320 | 320 | ||
| 321 | /* NOTE: no timeouts; can't be broken out of by interrupt */ | 321 | /* NOTE: no timeouts; can't be broken out of by interrupt */ |
| @@ -374,7 +374,7 @@ alloc_sglist (int nents, int max, int vary) | |||
| 374 | unsigned i; | 374 | unsigned i; |
| 375 | unsigned size = max; | 375 | unsigned size = max; |
| 376 | 376 | ||
| 377 | sg = kmalloc (nents * sizeof *sg, SLAB_KERNEL); | 377 | sg = kmalloc (nents * sizeof *sg, GFP_KERNEL); |
| 378 | if (!sg) | 378 | if (!sg) |
| 379 | return NULL; | 379 | return NULL; |
| 380 | 380 | ||
| @@ -382,7 +382,7 @@ alloc_sglist (int nents, int max, int vary) | |||
| 382 | char *buf; | 382 | char *buf; |
| 383 | unsigned j; | 383 | unsigned j; |
| 384 | 384 | ||
| 385 | buf = kzalloc (size, SLAB_KERNEL); | 385 | buf = kzalloc (size, GFP_KERNEL); |
| 386 | if (!buf) { | 386 | if (!buf) { |
| 387 | free_sglist (sg, i); | 387 | free_sglist (sg, i); |
| 388 | return NULL; | 388 | return NULL; |
| @@ -428,7 +428,7 @@ static int perform_sglist ( | |||
| 428 | (udev->speed == USB_SPEED_HIGH) | 428 | (udev->speed == USB_SPEED_HIGH) |
| 429 | ? (INTERRUPT_RATE << 3) | 429 | ? (INTERRUPT_RATE << 3) |
| 430 | : INTERRUPT_RATE, | 430 | : INTERRUPT_RATE, |
| 431 | sg, nents, 0, SLAB_KERNEL); | 431 | sg, nents, 0, GFP_KERNEL); |
| 432 | 432 | ||
| 433 | if (retval) | 433 | if (retval) |
| 434 | break; | 434 | break; |
| @@ -855,7 +855,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param) | |||
| 855 | * as with bulk/intr sglists, sglen is the queue depth; it also | 855 | * as with bulk/intr sglists, sglen is the queue depth; it also |
| 856 | * controls which subtests run (more tests than sglen) or rerun. | 856 | * controls which subtests run (more tests than sglen) or rerun. |
| 857 | */ | 857 | */ |
| 858 | urb = kcalloc(param->sglen, sizeof(struct urb *), SLAB_KERNEL); | 858 | urb = kcalloc(param->sglen, sizeof(struct urb *), GFP_KERNEL); |
| 859 | if (!urb) | 859 | if (!urb) |
| 860 | return -ENOMEM; | 860 | return -ENOMEM; |
| 861 | for (i = 0; i < param->sglen; i++) { | 861 | for (i = 0; i < param->sglen; i++) { |
| @@ -981,7 +981,7 @@ test_ctrl_queue (struct usbtest_dev *dev, struct usbtest_param *param) | |||
| 981 | if (!u) | 981 | if (!u) |
| 982 | goto cleanup; | 982 | goto cleanup; |
| 983 | 983 | ||
| 984 | reqp = usb_buffer_alloc (udev, sizeof *reqp, SLAB_KERNEL, | 984 | reqp = usb_buffer_alloc (udev, sizeof *reqp, GFP_KERNEL, |
| 985 | &u->setup_dma); | 985 | &u->setup_dma); |
| 986 | if (!reqp) | 986 | if (!reqp) |
| 987 | goto cleanup; | 987 | goto cleanup; |
| @@ -1067,7 +1067,7 @@ static int unlink1 (struct usbtest_dev *dev, int pipe, int size, int async) | |||
| 1067 | * FIXME want additional tests for when endpoint is STALLing | 1067 | * FIXME want additional tests for when endpoint is STALLing |
| 1068 | * due to errors, or is just NAKing requests. | 1068 | * due to errors, or is just NAKing requests. |
| 1069 | */ | 1069 | */ |
| 1070 | if ((retval = usb_submit_urb (urb, SLAB_KERNEL)) != 0) { | 1070 | if ((retval = usb_submit_urb (urb, GFP_KERNEL)) != 0) { |
| 1071 | dev_dbg (&dev->intf->dev, "submit fail %d\n", retval); | 1071 | dev_dbg (&dev->intf->dev, "submit fail %d\n", retval); |
| 1072 | return retval; | 1072 | return retval; |
| 1073 | } | 1073 | } |
| @@ -1251,7 +1251,7 @@ static int ctrl_out (struct usbtest_dev *dev, | |||
| 1251 | if (length < 1 || length > 0xffff || vary >= length) | 1251 | if (length < 1 || length > 0xffff || vary >= length) |
| 1252 | return -EINVAL; | 1252 | return -EINVAL; |
| 1253 | 1253 | ||
| 1254 | buf = kmalloc(length, SLAB_KERNEL); | 1254 | buf = kmalloc(length, GFP_KERNEL); |
| 1255 | if (!buf) | 1255 | if (!buf) |
| 1256 | return -ENOMEM; | 1256 | return -ENOMEM; |
| 1257 | 1257 | ||
| @@ -1403,7 +1403,7 @@ static struct urb *iso_alloc_urb ( | |||
| 1403 | maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11)); | 1403 | maxp *= 1 + (0x3 & (le16_to_cpu(desc->wMaxPacketSize) >> 11)); |
| 1404 | packets = (bytes + maxp - 1) / maxp; | 1404 | packets = (bytes + maxp - 1) / maxp; |
| 1405 | 1405 | ||
| 1406 | urb = usb_alloc_urb (packets, SLAB_KERNEL); | 1406 | urb = usb_alloc_urb (packets, GFP_KERNEL); |
| 1407 | if (!urb) | 1407 | if (!urb) |
| 1408 | return urb; | 1408 | return urb; |
| 1409 | urb->dev = udev; | 1409 | urb->dev = udev; |
| @@ -1411,7 +1411,7 @@ static struct urb *iso_alloc_urb ( | |||
| 1411 | 1411 | ||
| 1412 | urb->number_of_packets = packets; | 1412 | urb->number_of_packets = packets; |
| 1413 | urb->transfer_buffer_length = bytes; | 1413 | urb->transfer_buffer_length = bytes; |
| 1414 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, SLAB_KERNEL, | 1414 | urb->transfer_buffer = usb_buffer_alloc (udev, bytes, GFP_KERNEL, |
| 1415 | &urb->transfer_dma); | 1415 | &urb->transfer_dma); |
| 1416 | if (!urb->transfer_buffer) { | 1416 | if (!urb->transfer_buffer) { |
| 1417 | usb_free_urb (urb); | 1417 | usb_free_urb (urb); |
| @@ -1900,7 +1900,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id) | |||
| 1900 | } | 1900 | } |
| 1901 | #endif | 1901 | #endif |
| 1902 | 1902 | ||
| 1903 | dev = kzalloc(sizeof(*dev), SLAB_KERNEL); | 1903 | dev = kzalloc(sizeof(*dev), GFP_KERNEL); |
| 1904 | if (!dev) | 1904 | if (!dev) |
| 1905 | return -ENOMEM; | 1905 | return -ENOMEM; |
| 1906 | info = (struct usbtest_info *) id->driver_info; | 1906 | info = (struct usbtest_info *) id->driver_info; |
| @@ -1910,7 +1910,7 @@ usbtest_probe (struct usb_interface *intf, const struct usb_device_id *id) | |||
| 1910 | dev->intf = intf; | 1910 | dev->intf = intf; |
| 1911 | 1911 | ||
| 1912 | /* cacheline-aligned scratch for i/o */ | 1912 | /* cacheline-aligned scratch for i/o */ |
| 1913 | if ((dev->buf = kmalloc (TBUF_SIZE, SLAB_KERNEL)) == NULL) { | 1913 | if ((dev->buf = kmalloc (TBUF_SIZE, GFP_KERNEL)) == NULL) { |
| 1914 | kfree (dev); | 1914 | kfree (dev); |
| 1915 | return -ENOMEM; | 1915 | return -ENOMEM; |
| 1916 | } | 1916 | } |
diff --git a/drivers/usb/net/rndis_host.c b/drivers/usb/net/rndis_host.c index c2a28d88ef3c..99f26b3e502f 100644 --- a/drivers/usb/net/rndis_host.c +++ b/drivers/usb/net/rndis_host.c | |||
| @@ -469,7 +469,7 @@ static void rndis_unbind(struct usbnet *dev, struct usb_interface *intf) | |||
| 469 | struct rndis_halt *halt; | 469 | struct rndis_halt *halt; |
| 470 | 470 | ||
| 471 | /* try to clear any rndis state/activity (no i/o from stack!) */ | 471 | /* try to clear any rndis state/activity (no i/o from stack!) */ |
| 472 | halt = kcalloc(1, sizeof *halt, SLAB_KERNEL); | 472 | halt = kcalloc(1, sizeof *halt, GFP_KERNEL); |
| 473 | if (halt) { | 473 | if (halt) { |
| 474 | halt->msg_type = RNDIS_MSG_HALT; | 474 | halt->msg_type = RNDIS_MSG_HALT; |
| 475 | halt->msg_len = ccpu2(sizeof *halt); | 475 | halt->msg_len = ccpu2(sizeof *halt); |
diff --git a/drivers/usb/net/usbnet.c b/drivers/usb/net/usbnet.c index 327f97555679..6e39e9988259 100644 --- a/drivers/usb/net/usbnet.c +++ b/drivers/usb/net/usbnet.c | |||
| @@ -179,9 +179,9 @@ static int init_status (struct usbnet *dev, struct usb_interface *intf) | |||
| 179 | period = max ((int) dev->status->desc.bInterval, | 179 | period = max ((int) dev->status->desc.bInterval, |
| 180 | (dev->udev->speed == USB_SPEED_HIGH) ? 7 : 3); | 180 | (dev->udev->speed == USB_SPEED_HIGH) ? 7 : 3); |
| 181 | 181 | ||
| 182 | buf = kmalloc (maxp, SLAB_KERNEL); | 182 | buf = kmalloc (maxp, GFP_KERNEL); |
| 183 | if (buf) { | 183 | if (buf) { |
| 184 | dev->interrupt = usb_alloc_urb (0, SLAB_KERNEL); | 184 | dev->interrupt = usb_alloc_urb (0, GFP_KERNEL); |
| 185 | if (!dev->interrupt) { | 185 | if (!dev->interrupt) { |
| 186 | kfree (buf); | 186 | kfree (buf); |
| 187 | return -ENOMEM; | 187 | return -ENOMEM; |
diff --git a/fs/adfs/super.c b/fs/adfs/super.c index 9ade139086fc..52eb10ca654e 100644 --- a/fs/adfs/super.c +++ b/fs/adfs/super.c | |||
| @@ -217,7 +217,7 @@ static kmem_cache_t *adfs_inode_cachep; | |||
| 217 | static struct inode *adfs_alloc_inode(struct super_block *sb) | 217 | static struct inode *adfs_alloc_inode(struct super_block *sb) |
| 218 | { | 218 | { |
| 219 | struct adfs_inode_info *ei; | 219 | struct adfs_inode_info *ei; |
| 220 | ei = (struct adfs_inode_info *)kmem_cache_alloc(adfs_inode_cachep, SLAB_KERNEL); | 220 | ei = (struct adfs_inode_info *)kmem_cache_alloc(adfs_inode_cachep, GFP_KERNEL); |
| 221 | if (!ei) | 221 | if (!ei) |
| 222 | return NULL; | 222 | return NULL; |
| 223 | return &ei->vfs_inode; | 223 | return &ei->vfs_inode; |
diff --git a/fs/affs/super.c b/fs/affs/super.c index 5ea72c3a16c3..81c73ec09f66 100644 --- a/fs/affs/super.c +++ b/fs/affs/super.c | |||
| @@ -71,7 +71,7 @@ static kmem_cache_t * affs_inode_cachep; | |||
| 71 | static struct inode *affs_alloc_inode(struct super_block *sb) | 71 | static struct inode *affs_alloc_inode(struct super_block *sb) |
| 72 | { | 72 | { |
| 73 | struct affs_inode_info *ei; | 73 | struct affs_inode_info *ei; |
| 74 | ei = (struct affs_inode_info *)kmem_cache_alloc(affs_inode_cachep, SLAB_KERNEL); | 74 | ei = (struct affs_inode_info *)kmem_cache_alloc(affs_inode_cachep, GFP_KERNEL); |
| 75 | if (!ei) | 75 | if (!ei) |
| 76 | return NULL; | 76 | return NULL; |
| 77 | ei->vfs_inode.i_version = 1; | 77 | ei->vfs_inode.i_version = 1; |
diff --git a/fs/afs/super.c b/fs/afs/super.c index 67d1f5c819ec..c6ead009bf78 100644 --- a/fs/afs/super.c +++ b/fs/afs/super.c | |||
| @@ -412,7 +412,7 @@ static struct inode *afs_alloc_inode(struct super_block *sb) | |||
| 412 | struct afs_vnode *vnode; | 412 | struct afs_vnode *vnode; |
| 413 | 413 | ||
| 414 | vnode = (struct afs_vnode *) | 414 | vnode = (struct afs_vnode *) |
| 415 | kmem_cache_alloc(afs_inode_cachep, SLAB_KERNEL); | 415 | kmem_cache_alloc(afs_inode_cachep, GFP_KERNEL); |
| 416 | if (!vnode) | 416 | if (!vnode) |
| 417 | return NULL; | 417 | return NULL; |
| 418 | 418 | ||
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index 07f7144f0e2e..995348df94ad 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
| @@ -277,7 +277,7 @@ befs_alloc_inode(struct super_block *sb) | |||
| 277 | { | 277 | { |
| 278 | struct befs_inode_info *bi; | 278 | struct befs_inode_info *bi; |
| 279 | bi = (struct befs_inode_info *)kmem_cache_alloc(befs_inode_cachep, | 279 | bi = (struct befs_inode_info *)kmem_cache_alloc(befs_inode_cachep, |
| 280 | SLAB_KERNEL); | 280 | GFP_KERNEL); |
| 281 | if (!bi) | 281 | if (!bi) |
| 282 | return NULL; | 282 | return NULL; |
| 283 | return &bi->vfs_inode; | 283 | return &bi->vfs_inode; |
diff --git a/fs/bfs/inode.c b/fs/bfs/inode.c index ed27ffb3459e..2e45123c8f7a 100644 --- a/fs/bfs/inode.c +++ b/fs/bfs/inode.c | |||
| @@ -233,7 +233,7 @@ static kmem_cache_t * bfs_inode_cachep; | |||
| 233 | static struct inode *bfs_alloc_inode(struct super_block *sb) | 233 | static struct inode *bfs_alloc_inode(struct super_block *sb) |
| 234 | { | 234 | { |
| 235 | struct bfs_inode_info *bi; | 235 | struct bfs_inode_info *bi; |
| 236 | bi = kmem_cache_alloc(bfs_inode_cachep, SLAB_KERNEL); | 236 | bi = kmem_cache_alloc(bfs_inode_cachep, GFP_KERNEL); |
| 237 | if (!bi) | 237 | if (!bi) |
| 238 | return NULL; | 238 | return NULL; |
| 239 | return &bi->vfs_inode; | 239 | return &bi->vfs_inode; |
diff --git a/fs/block_dev.c b/fs/block_dev.c index 36c0e7af9d0f..063506705f27 100644 --- a/fs/block_dev.c +++ b/fs/block_dev.c | |||
| @@ -239,7 +239,7 @@ static kmem_cache_t * bdev_cachep __read_mostly; | |||
| 239 | 239 | ||
| 240 | static struct inode *bdev_alloc_inode(struct super_block *sb) | 240 | static struct inode *bdev_alloc_inode(struct super_block *sb) |
| 241 | { | 241 | { |
| 242 | struct bdev_inode *ei = kmem_cache_alloc(bdev_cachep, SLAB_KERNEL); | 242 | struct bdev_inode *ei = kmem_cache_alloc(bdev_cachep, GFP_KERNEL); |
| 243 | if (!ei) | 243 | if (!ei) |
| 244 | return NULL; | 244 | return NULL; |
| 245 | return &ei->vfs_inode; | 245 | return &ei->vfs_inode; |
diff --git a/fs/cifs/cifsfs.c b/fs/cifs/cifsfs.c index 84976cdbe713..84168629cea3 100644 --- a/fs/cifs/cifsfs.c +++ b/fs/cifs/cifsfs.c | |||
| @@ -245,7 +245,7 @@ static struct inode * | |||
| 245 | cifs_alloc_inode(struct super_block *sb) | 245 | cifs_alloc_inode(struct super_block *sb) |
| 246 | { | 246 | { |
| 247 | struct cifsInodeInfo *cifs_inode; | 247 | struct cifsInodeInfo *cifs_inode; |
| 248 | cifs_inode = kmem_cache_alloc(cifs_inode_cachep, SLAB_KERNEL); | 248 | cifs_inode = kmem_cache_alloc(cifs_inode_cachep, GFP_KERNEL); |
| 249 | if (!cifs_inode) | 249 | if (!cifs_inode) |
| 250 | return NULL; | 250 | return NULL; |
| 251 | cifs_inode->cifsAttrs = 0x20; /* default */ | 251 | cifs_inode->cifsAttrs = 0x20; /* default */ |
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index 8355daff504c..aedf683f011f 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c | |||
| @@ -153,7 +153,7 @@ cifs_buf_get(void) | |||
| 153 | albeit slightly larger than necessary and maxbuffersize | 153 | albeit slightly larger than necessary and maxbuffersize |
| 154 | defaults to this and can not be bigger */ | 154 | defaults to this and can not be bigger */ |
| 155 | ret_buf = | 155 | ret_buf = |
| 156 | (struct smb_hdr *) mempool_alloc(cifs_req_poolp, SLAB_KERNEL | GFP_NOFS); | 156 | (struct smb_hdr *) mempool_alloc(cifs_req_poolp, GFP_KERNEL | GFP_NOFS); |
| 157 | 157 | ||
| 158 | /* clear the first few header bytes */ | 158 | /* clear the first few header bytes */ |
| 159 | /* for most paths, more is cleared in header_assemble */ | 159 | /* for most paths, more is cleared in header_assemble */ |
| @@ -192,7 +192,7 @@ cifs_small_buf_get(void) | |||
| 192 | albeit slightly larger than necessary and maxbuffersize | 192 | albeit slightly larger than necessary and maxbuffersize |
| 193 | defaults to this and can not be bigger */ | 193 | defaults to this and can not be bigger */ |
| 194 | ret_buf = | 194 | ret_buf = |
| 195 | (struct smb_hdr *) mempool_alloc(cifs_sm_req_poolp, SLAB_KERNEL | GFP_NOFS); | 195 | (struct smb_hdr *) mempool_alloc(cifs_sm_req_poolp, GFP_KERNEL | GFP_NOFS); |
| 196 | if (ret_buf) { | 196 | if (ret_buf) { |
| 197 | /* No need to clear memory here, cleared in header assemble */ | 197 | /* No need to clear memory here, cleared in header assemble */ |
| 198 | /* memset(ret_buf, 0, sizeof(struct smb_hdr) + 27);*/ | 198 | /* memset(ret_buf, 0, sizeof(struct smb_hdr) + 27);*/ |
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7514237cf31a..1f727765a8ea 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c | |||
| @@ -51,7 +51,7 @@ AllocMidQEntry(const struct smb_hdr *smb_buffer, struct cifsSesInfo *ses) | |||
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | temp = (struct mid_q_entry *) mempool_alloc(cifs_mid_poolp, | 53 | temp = (struct mid_q_entry *) mempool_alloc(cifs_mid_poolp, |
| 54 | SLAB_KERNEL | GFP_NOFS); | 54 | GFP_KERNEL | GFP_NOFS); |
| 55 | if (temp == NULL) | 55 | if (temp == NULL) |
| 56 | return temp; | 56 | return temp; |
| 57 | else { | 57 | else { |
| @@ -118,7 +118,7 @@ AllocOplockQEntry(struct inode * pinode, __u16 fid, struct cifsTconInfo * tcon) | |||
| 118 | return NULL; | 118 | return NULL; |
| 119 | } | 119 | } |
| 120 | temp = (struct oplock_q_entry *) kmem_cache_alloc(cifs_oplock_cachep, | 120 | temp = (struct oplock_q_entry *) kmem_cache_alloc(cifs_oplock_cachep, |
| 121 | SLAB_KERNEL); | 121 | GFP_KERNEL); |
| 122 | if (temp == NULL) | 122 | if (temp == NULL) |
| 123 | return temp; | 123 | return temp; |
| 124 | else { | 124 | else { |
diff --git a/fs/coda/inode.c b/fs/coda/inode.c index 88d123321164..50cedd2617d6 100644 --- a/fs/coda/inode.c +++ b/fs/coda/inode.c | |||
| @@ -43,7 +43,7 @@ static kmem_cache_t * coda_inode_cachep; | |||
| 43 | static struct inode *coda_alloc_inode(struct super_block *sb) | 43 | static struct inode *coda_alloc_inode(struct super_block *sb) |
| 44 | { | 44 | { |
| 45 | struct coda_inode_info *ei; | 45 | struct coda_inode_info *ei; |
| 46 | ei = (struct coda_inode_info *)kmem_cache_alloc(coda_inode_cachep, SLAB_KERNEL); | 46 | ei = (struct coda_inode_info *)kmem_cache_alloc(coda_inode_cachep, GFP_KERNEL); |
| 47 | if (!ei) | 47 | if (!ei) |
| 48 | return NULL; | 48 | return NULL; |
| 49 | memset(&ei->c_fid, 0, sizeof(struct CodaFid)); | 49 | memset(&ei->c_fid, 0, sizeof(struct CodaFid)); |
diff --git a/fs/dnotify.c b/fs/dnotify.c index 2b0442db67e0..e778b1737b79 100644 --- a/fs/dnotify.c +++ b/fs/dnotify.c | |||
| @@ -77,7 +77,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg) | |||
| 77 | inode = filp->f_dentry->d_inode; | 77 | inode = filp->f_dentry->d_inode; |
| 78 | if (!S_ISDIR(inode->i_mode)) | 78 | if (!S_ISDIR(inode->i_mode)) |
| 79 | return -ENOTDIR; | 79 | return -ENOTDIR; |
| 80 | dn = kmem_cache_alloc(dn_cache, SLAB_KERNEL); | 80 | dn = kmem_cache_alloc(dn_cache, GFP_KERNEL); |
| 81 | if (dn == NULL) | 81 | if (dn == NULL) |
| 82 | return -ENOMEM; | 82 | return -ENOMEM; |
| 83 | spin_lock(&inode->i_lock); | 83 | spin_lock(&inode->i_lock); |
diff --git a/fs/ecryptfs/crypto.c b/fs/ecryptfs/crypto.c index 776b2eed371e..7196f50fe152 100644 --- a/fs/ecryptfs/crypto.c +++ b/fs/ecryptfs/crypto.c | |||
| @@ -628,7 +628,7 @@ int ecryptfs_decrypt_page(struct file *file, struct page *page) | |||
| 628 | num_extents_per_page = PAGE_CACHE_SIZE / crypt_stat->extent_size; | 628 | num_extents_per_page = PAGE_CACHE_SIZE / crypt_stat->extent_size; |
| 629 | base_extent = (page->index * num_extents_per_page); | 629 | base_extent = (page->index * num_extents_per_page); |
| 630 | lower_page_virt = kmem_cache_alloc(ecryptfs_lower_page_cache, | 630 | lower_page_virt = kmem_cache_alloc(ecryptfs_lower_page_cache, |
| 631 | SLAB_KERNEL); | 631 | GFP_KERNEL); |
| 632 | if (!lower_page_virt) { | 632 | if (!lower_page_virt) { |
| 633 | rc = -ENOMEM; | 633 | rc = -ENOMEM; |
| 634 | ecryptfs_printk(KERN_ERR, "Error getting page for encrypted " | 634 | ecryptfs_printk(KERN_ERR, "Error getting page for encrypted " |
diff --git a/fs/ecryptfs/file.c b/fs/ecryptfs/file.c index a92ef05eff8f..42099e779a56 100644 --- a/fs/ecryptfs/file.c +++ b/fs/ecryptfs/file.c | |||
| @@ -250,7 +250,7 @@ static int ecryptfs_open(struct inode *inode, struct file *file) | |||
| 250 | int lower_flags; | 250 | int lower_flags; |
| 251 | 251 | ||
| 252 | /* Released in ecryptfs_release or end of function if failure */ | 252 | /* Released in ecryptfs_release or end of function if failure */ |
| 253 | file_info = kmem_cache_alloc(ecryptfs_file_info_cache, SLAB_KERNEL); | 253 | file_info = kmem_cache_alloc(ecryptfs_file_info_cache, GFP_KERNEL); |
| 254 | ecryptfs_set_file_private(file, file_info); | 254 | ecryptfs_set_file_private(file, file_info); |
| 255 | if (!file_info) { | 255 | if (!file_info) { |
| 256 | ecryptfs_printk(KERN_ERR, | 256 | ecryptfs_printk(KERN_ERR, |
diff --git a/fs/ecryptfs/inode.c b/fs/ecryptfs/inode.c index 70911412044d..8a1945a84c36 100644 --- a/fs/ecryptfs/inode.c +++ b/fs/ecryptfs/inode.c | |||
| @@ -369,7 +369,7 @@ static struct dentry *ecryptfs_lookup(struct inode *dir, struct dentry *dentry, | |||
| 369 | BUG_ON(!atomic_read(&lower_dentry->d_count)); | 369 | BUG_ON(!atomic_read(&lower_dentry->d_count)); |
| 370 | ecryptfs_set_dentry_private(dentry, | 370 | ecryptfs_set_dentry_private(dentry, |
| 371 | kmem_cache_alloc(ecryptfs_dentry_info_cache, | 371 | kmem_cache_alloc(ecryptfs_dentry_info_cache, |
| 372 | SLAB_KERNEL)); | 372 | GFP_KERNEL)); |
| 373 | if (!ecryptfs_dentry_to_private(dentry)) { | 373 | if (!ecryptfs_dentry_to_private(dentry)) { |
| 374 | rc = -ENOMEM; | 374 | rc = -ENOMEM; |
| 375 | ecryptfs_printk(KERN_ERR, "Out of memory whilst attempting " | 375 | ecryptfs_printk(KERN_ERR, "Out of memory whilst attempting " |
| @@ -795,7 +795,7 @@ int ecryptfs_truncate(struct dentry *dentry, loff_t new_length) | |||
| 795 | /* Released at out_free: label */ | 795 | /* Released at out_free: label */ |
| 796 | ecryptfs_set_file_private(&fake_ecryptfs_file, | 796 | ecryptfs_set_file_private(&fake_ecryptfs_file, |
| 797 | kmem_cache_alloc(ecryptfs_file_info_cache, | 797 | kmem_cache_alloc(ecryptfs_file_info_cache, |
| 798 | SLAB_KERNEL)); | 798 | GFP_KERNEL)); |
| 799 | if (unlikely(!ecryptfs_file_to_private(&fake_ecryptfs_file))) { | 799 | if (unlikely(!ecryptfs_file_to_private(&fake_ecryptfs_file))) { |
| 800 | rc = -ENOMEM; | 800 | rc = -ENOMEM; |
| 801 | goto out; | 801 | goto out; |
diff --git a/fs/ecryptfs/keystore.c b/fs/ecryptfs/keystore.c index c3746f56d162..745c0f1bfbbd 100644 --- a/fs/ecryptfs/keystore.c +++ b/fs/ecryptfs/keystore.c | |||
| @@ -207,7 +207,7 @@ parse_tag_3_packet(struct ecryptfs_crypt_stat *crypt_stat, | |||
| 207 | /* Released: wipe_auth_tok_list called in ecryptfs_parse_packet_set or | 207 | /* Released: wipe_auth_tok_list called in ecryptfs_parse_packet_set or |
| 208 | * at end of function upon failure */ | 208 | * at end of function upon failure */ |
| 209 | auth_tok_list_item = | 209 | auth_tok_list_item = |
| 210 | kmem_cache_alloc(ecryptfs_auth_tok_list_item_cache, SLAB_KERNEL); | 210 | kmem_cache_alloc(ecryptfs_auth_tok_list_item_cache, GFP_KERNEL); |
| 211 | if (!auth_tok_list_item) { | 211 | if (!auth_tok_list_item) { |
| 212 | ecryptfs_printk(KERN_ERR, "Unable to allocate memory\n"); | 212 | ecryptfs_printk(KERN_ERR, "Unable to allocate memory\n"); |
| 213 | rc = -ENOMEM; | 213 | rc = -ENOMEM; |
diff --git a/fs/ecryptfs/main.c b/fs/ecryptfs/main.c index a78d87d14baf..a2c6ccbce300 100644 --- a/fs/ecryptfs/main.c +++ b/fs/ecryptfs/main.c | |||
| @@ -378,7 +378,7 @@ ecryptfs_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
| 378 | /* Released in ecryptfs_put_super() */ | 378 | /* Released in ecryptfs_put_super() */ |
| 379 | ecryptfs_set_superblock_private(sb, | 379 | ecryptfs_set_superblock_private(sb, |
| 380 | kmem_cache_alloc(ecryptfs_sb_info_cache, | 380 | kmem_cache_alloc(ecryptfs_sb_info_cache, |
| 381 | SLAB_KERNEL)); | 381 | GFP_KERNEL)); |
| 382 | if (!ecryptfs_superblock_to_private(sb)) { | 382 | if (!ecryptfs_superblock_to_private(sb)) { |
| 383 | ecryptfs_printk(KERN_WARNING, "Out of memory\n"); | 383 | ecryptfs_printk(KERN_WARNING, "Out of memory\n"); |
| 384 | rc = -ENOMEM; | 384 | rc = -ENOMEM; |
| @@ -402,7 +402,7 @@ ecryptfs_fill_super(struct super_block *sb, void *raw_data, int silent) | |||
| 402 | /* through deactivate_super(sb) from get_sb_nodev() */ | 402 | /* through deactivate_super(sb) from get_sb_nodev() */ |
| 403 | ecryptfs_set_dentry_private(sb->s_root, | 403 | ecryptfs_set_dentry_private(sb->s_root, |
| 404 | kmem_cache_alloc(ecryptfs_dentry_info_cache, | 404 | kmem_cache_alloc(ecryptfs_dentry_info_cache, |
| 405 | SLAB_KERNEL)); | 405 | GFP_KERNEL)); |
| 406 | if (!ecryptfs_dentry_to_private(sb->s_root)) { | 406 | if (!ecryptfs_dentry_to_private(sb->s_root)) { |
| 407 | ecryptfs_printk(KERN_ERR, | 407 | ecryptfs_printk(KERN_ERR, |
| 408 | "dentry_info_cache alloc failed\n"); | 408 | "dentry_info_cache alloc failed\n"); |
diff --git a/fs/ecryptfs/super.c b/fs/ecryptfs/super.c index 825757ae4867..eaa5daaf106e 100644 --- a/fs/ecryptfs/super.c +++ b/fs/ecryptfs/super.c | |||
| @@ -50,7 +50,7 @@ static struct inode *ecryptfs_alloc_inode(struct super_block *sb) | |||
| 50 | struct inode *inode = NULL; | 50 | struct inode *inode = NULL; |
| 51 | 51 | ||
| 52 | ecryptfs_inode = kmem_cache_alloc(ecryptfs_inode_info_cache, | 52 | ecryptfs_inode = kmem_cache_alloc(ecryptfs_inode_info_cache, |
| 53 | SLAB_KERNEL); | 53 | GFP_KERNEL); |
| 54 | if (unlikely(!ecryptfs_inode)) | 54 | if (unlikely(!ecryptfs_inode)) |
| 55 | goto out; | 55 | goto out; |
| 56 | ecryptfs_init_crypt_stat(&ecryptfs_inode->crypt_stat); | 56 | ecryptfs_init_crypt_stat(&ecryptfs_inode->crypt_stat); |
diff --git a/fs/efs/super.c b/fs/efs/super.c index b3f50651eb6b..69b15a996cfc 100644 --- a/fs/efs/super.c +++ b/fs/efs/super.c | |||
| @@ -57,7 +57,7 @@ static kmem_cache_t * efs_inode_cachep; | |||
| 57 | static struct inode *efs_alloc_inode(struct super_block *sb) | 57 | static struct inode *efs_alloc_inode(struct super_block *sb) |
| 58 | { | 58 | { |
| 59 | struct efs_inode_info *ei; | 59 | struct efs_inode_info *ei; |
| 60 | ei = (struct efs_inode_info *)kmem_cache_alloc(efs_inode_cachep, SLAB_KERNEL); | 60 | ei = (struct efs_inode_info *)kmem_cache_alloc(efs_inode_cachep, GFP_KERNEL); |
| 61 | if (!ei) | 61 | if (!ei) |
| 62 | return NULL; | 62 | return NULL; |
| 63 | return &ei->vfs_inode; | 63 | return &ei->vfs_inode; |
diff --git a/fs/eventpoll.c b/fs/eventpoll.c index ae228ec54e94..f5c88435c6be 100644 --- a/fs/eventpoll.c +++ b/fs/eventpoll.c | |||
| @@ -961,7 +961,7 @@ static void ep_ptable_queue_proc(struct file *file, wait_queue_head_t *whead, | |||
| 961 | struct epitem *epi = ep_item_from_epqueue(pt); | 961 | struct epitem *epi = ep_item_from_epqueue(pt); |
| 962 | struct eppoll_entry *pwq; | 962 | struct eppoll_entry *pwq; |
| 963 | 963 | ||
| 964 | if (epi->nwait >= 0 && (pwq = kmem_cache_alloc(pwq_cache, SLAB_KERNEL))) { | 964 | if (epi->nwait >= 0 && (pwq = kmem_cache_alloc(pwq_cache, GFP_KERNEL))) { |
| 965 | init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); | 965 | init_waitqueue_func_entry(&pwq->wait, ep_poll_callback); |
| 966 | pwq->whead = whead; | 966 | pwq->whead = whead; |
| 967 | pwq->base = epi; | 967 | pwq->base = epi; |
| @@ -1004,7 +1004,7 @@ static int ep_insert(struct eventpoll *ep, struct epoll_event *event, | |||
| 1004 | struct ep_pqueue epq; | 1004 | struct ep_pqueue epq; |
| 1005 | 1005 | ||
| 1006 | error = -ENOMEM; | 1006 | error = -ENOMEM; |
| 1007 | if (!(epi = kmem_cache_alloc(epi_cache, SLAB_KERNEL))) | 1007 | if (!(epi = kmem_cache_alloc(epi_cache, GFP_KERNEL))) |
| 1008 | goto eexit_1; | 1008 | goto eexit_1; |
| 1009 | 1009 | ||
| 1010 | /* Item initialization follow here ... */ | 1010 | /* Item initialization follow here ... */ |
| @@ -404,7 +404,7 @@ int setup_arg_pages(struct linux_binprm *bprm, | |||
| 404 | bprm->loader += stack_base; | 404 | bprm->loader += stack_base; |
| 405 | bprm->exec += stack_base; | 405 | bprm->exec += stack_base; |
| 406 | 406 | ||
| 407 | mpnt = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 407 | mpnt = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 408 | if (!mpnt) | 408 | if (!mpnt) |
| 409 | return -ENOMEM; | 409 | return -ENOMEM; |
| 410 | 410 | ||
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index d8b9abd95d07..85c237e73853 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
| @@ -140,7 +140,7 @@ static kmem_cache_t * ext2_inode_cachep; | |||
| 140 | static struct inode *ext2_alloc_inode(struct super_block *sb) | 140 | static struct inode *ext2_alloc_inode(struct super_block *sb) |
| 141 | { | 141 | { |
| 142 | struct ext2_inode_info *ei; | 142 | struct ext2_inode_info *ei; |
| 143 | ei = (struct ext2_inode_info *)kmem_cache_alloc(ext2_inode_cachep, SLAB_KERNEL); | 143 | ei = (struct ext2_inode_info *)kmem_cache_alloc(ext2_inode_cachep, GFP_KERNEL); |
| 144 | if (!ei) | 144 | if (!ei) |
| 145 | return NULL; | 145 | return NULL; |
| 146 | #ifdef CONFIG_EXT2_FS_POSIX_ACL | 146 | #ifdef CONFIG_EXT2_FS_POSIX_ACL |
diff --git a/fs/fat/cache.c b/fs/fat/cache.c index 82cc4f59e3ba..8c272278455c 100644 --- a/fs/fat/cache.c +++ b/fs/fat/cache.c | |||
| @@ -63,7 +63,7 @@ void fat_cache_destroy(void) | |||
| 63 | 63 | ||
| 64 | static inline struct fat_cache *fat_cache_alloc(struct inode *inode) | 64 | static inline struct fat_cache *fat_cache_alloc(struct inode *inode) |
| 65 | { | 65 | { |
| 66 | return kmem_cache_alloc(fat_cache_cachep, SLAB_KERNEL); | 66 | return kmem_cache_alloc(fat_cache_cachep, GFP_KERNEL); |
| 67 | } | 67 | } |
| 68 | 68 | ||
| 69 | static inline void fat_cache_free(struct fat_cache *cache) | 69 | static inline void fat_cache_free(struct fat_cache *cache) |
diff --git a/fs/fat/inode.c b/fs/fat/inode.c index 78945b53b0f8..b58fd0c9f3cd 100644 --- a/fs/fat/inode.c +++ b/fs/fat/inode.c | |||
| @@ -482,7 +482,7 @@ static kmem_cache_t *fat_inode_cachep; | |||
| 482 | static struct inode *fat_alloc_inode(struct super_block *sb) | 482 | static struct inode *fat_alloc_inode(struct super_block *sb) |
| 483 | { | 483 | { |
| 484 | struct msdos_inode_info *ei; | 484 | struct msdos_inode_info *ei; |
| 485 | ei = kmem_cache_alloc(fat_inode_cachep, SLAB_KERNEL); | 485 | ei = kmem_cache_alloc(fat_inode_cachep, GFP_KERNEL); |
| 486 | if (!ei) | 486 | if (!ei) |
| 487 | return NULL; | 487 | return NULL; |
| 488 | return &ei->vfs_inode; | 488 | return &ei->vfs_inode; |
diff --git a/fs/fcntl.c b/fs/fcntl.c index e4f26165f12a..c03dc9cb21cb 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c | |||
| @@ -567,7 +567,7 @@ int fasync_helper(int fd, struct file * filp, int on, struct fasync_struct **fap | |||
| 567 | int result = 0; | 567 | int result = 0; |
| 568 | 568 | ||
| 569 | if (on) { | 569 | if (on) { |
| 570 | new = kmem_cache_alloc(fasync_cache, SLAB_KERNEL); | 570 | new = kmem_cache_alloc(fasync_cache, GFP_KERNEL); |
| 571 | if (!new) | 571 | if (!new) |
| 572 | return -ENOMEM; | 572 | return -ENOMEM; |
| 573 | } | 573 | } |
diff --git a/fs/freevxfs/vxfs_inode.c b/fs/freevxfs/vxfs_inode.c index 4786d51ad3bd..d2dd0d700077 100644 --- a/fs/freevxfs/vxfs_inode.c +++ b/fs/freevxfs/vxfs_inode.c | |||
| @@ -103,7 +103,7 @@ vxfs_blkiget(struct super_block *sbp, u_long extent, ino_t ino) | |||
| 103 | struct vxfs_inode_info *vip; | 103 | struct vxfs_inode_info *vip; |
| 104 | struct vxfs_dinode *dip; | 104 | struct vxfs_dinode *dip; |
| 105 | 105 | ||
| 106 | if (!(vip = kmem_cache_alloc(vxfs_inode_cachep, SLAB_KERNEL))) | 106 | if (!(vip = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL))) |
| 107 | goto fail; | 107 | goto fail; |
| 108 | dip = (struct vxfs_dinode *)(bp->b_data + offset); | 108 | dip = (struct vxfs_dinode *)(bp->b_data + offset); |
| 109 | memcpy(vip, dip, sizeof(*vip)); | 109 | memcpy(vip, dip, sizeof(*vip)); |
| @@ -145,7 +145,7 @@ __vxfs_iget(ino_t ino, struct inode *ilistp) | |||
| 145 | struct vxfs_dinode *dip; | 145 | struct vxfs_dinode *dip; |
| 146 | caddr_t kaddr = (char *)page_address(pp); | 146 | caddr_t kaddr = (char *)page_address(pp); |
| 147 | 147 | ||
| 148 | if (!(vip = kmem_cache_alloc(vxfs_inode_cachep, SLAB_KERNEL))) | 148 | if (!(vip = kmem_cache_alloc(vxfs_inode_cachep, GFP_KERNEL))) |
| 149 | goto fail; | 149 | goto fail; |
| 150 | dip = (struct vxfs_dinode *)(kaddr + offset); | 150 | dip = (struct vxfs_dinode *)(kaddr + offset); |
| 151 | memcpy(vip, dip, sizeof(*vip)); | 151 | memcpy(vip, dip, sizeof(*vip)); |
diff --git a/fs/fuse/dev.c b/fs/fuse/dev.c index 66571eafbb1e..8c15139f2756 100644 --- a/fs/fuse/dev.c +++ b/fs/fuse/dev.c | |||
| @@ -41,7 +41,7 @@ static void fuse_request_init(struct fuse_req *req) | |||
| 41 | 41 | ||
| 42 | struct fuse_req *fuse_request_alloc(void) | 42 | struct fuse_req *fuse_request_alloc(void) |
| 43 | { | 43 | { |
| 44 | struct fuse_req *req = kmem_cache_alloc(fuse_req_cachep, SLAB_KERNEL); | 44 | struct fuse_req *req = kmem_cache_alloc(fuse_req_cachep, GFP_KERNEL); |
| 45 | if (req) | 45 | if (req) |
| 46 | fuse_request_init(req); | 46 | fuse_request_init(req); |
| 47 | return req; | 47 | return req; |
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c index fc4203570370..e039e2047cce 100644 --- a/fs/fuse/inode.c +++ b/fs/fuse/inode.c | |||
| @@ -46,7 +46,7 @@ static struct inode *fuse_alloc_inode(struct super_block *sb) | |||
| 46 | struct inode *inode; | 46 | struct inode *inode; |
| 47 | struct fuse_inode *fi; | 47 | struct fuse_inode *fi; |
| 48 | 48 | ||
| 49 | inode = kmem_cache_alloc(fuse_inode_cachep, SLAB_KERNEL); | 49 | inode = kmem_cache_alloc(fuse_inode_cachep, GFP_KERNEL); |
| 50 | if (!inode) | 50 | if (!inode) |
| 51 | return NULL; | 51 | return NULL; |
| 52 | 52 | ||
diff --git a/fs/hfs/super.c b/fs/hfs/super.c index 85b17b3fa4a0..ffc6409132c8 100644 --- a/fs/hfs/super.c +++ b/fs/hfs/super.c | |||
| @@ -145,7 +145,7 @@ static struct inode *hfs_alloc_inode(struct super_block *sb) | |||
| 145 | { | 145 | { |
| 146 | struct hfs_inode_info *i; | 146 | struct hfs_inode_info *i; |
| 147 | 147 | ||
| 148 | i = kmem_cache_alloc(hfs_inode_cachep, SLAB_KERNEL); | 148 | i = kmem_cache_alloc(hfs_inode_cachep, GFP_KERNEL); |
| 149 | return i ? &i->vfs_inode : NULL; | 149 | return i ? &i->vfs_inode : NULL; |
| 150 | } | 150 | } |
| 151 | 151 | ||
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 194eede52fa4..4a0c70c76c8a 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c | |||
| @@ -440,7 +440,7 @@ static struct inode *hfsplus_alloc_inode(struct super_block *sb) | |||
| 440 | { | 440 | { |
| 441 | struct hfsplus_inode_info *i; | 441 | struct hfsplus_inode_info *i; |
| 442 | 442 | ||
| 443 | i = kmem_cache_alloc(hfsplus_inode_cachep, SLAB_KERNEL); | 443 | i = kmem_cache_alloc(hfsplus_inode_cachep, GFP_KERNEL); |
| 444 | return i ? &i->vfs_inode : NULL; | 444 | return i ? &i->vfs_inode : NULL; |
| 445 | } | 445 | } |
| 446 | 446 | ||
diff --git a/fs/hugetlbfs/inode.c b/fs/hugetlbfs/inode.c index 7f4756963d05..36e52173a54a 100644 --- a/fs/hugetlbfs/inode.c +++ b/fs/hugetlbfs/inode.c | |||
| @@ -522,7 +522,7 @@ static struct inode *hugetlbfs_alloc_inode(struct super_block *sb) | |||
| 522 | 522 | ||
| 523 | if (unlikely(!hugetlbfs_dec_free_inodes(sbinfo))) | 523 | if (unlikely(!hugetlbfs_dec_free_inodes(sbinfo))) |
| 524 | return NULL; | 524 | return NULL; |
| 525 | p = kmem_cache_alloc(hugetlbfs_inode_cachep, SLAB_KERNEL); | 525 | p = kmem_cache_alloc(hugetlbfs_inode_cachep, GFP_KERNEL); |
| 526 | if (unlikely(!p)) { | 526 | if (unlikely(!p)) { |
| 527 | hugetlbfs_inc_free_inodes(sbinfo); | 527 | hugetlbfs_inc_free_inodes(sbinfo); |
| 528 | return NULL; | 528 | return NULL; |
diff --git a/fs/inode.c b/fs/inode.c index 26cdb115ce67..dd15984d51a8 100644 --- a/fs/inode.c +++ b/fs/inode.c | |||
| @@ -109,7 +109,7 @@ static struct inode *alloc_inode(struct super_block *sb) | |||
| 109 | if (sb->s_op->alloc_inode) | 109 | if (sb->s_op->alloc_inode) |
| 110 | inode = sb->s_op->alloc_inode(sb); | 110 | inode = sb->s_op->alloc_inode(sb); |
| 111 | else | 111 | else |
| 112 | inode = (struct inode *) kmem_cache_alloc(inode_cachep, SLAB_KERNEL); | 112 | inode = (struct inode *) kmem_cache_alloc(inode_cachep, GFP_KERNEL); |
| 113 | 113 | ||
| 114 | if (inode) { | 114 | if (inode) { |
| 115 | struct address_space * const mapping = &inode->i_data; | 115 | struct address_space * const mapping = &inode->i_data; |
diff --git a/fs/isofs/inode.c b/fs/isofs/inode.c index c34b862cdbf2..4b6381cd2cf4 100644 --- a/fs/isofs/inode.c +++ b/fs/isofs/inode.c | |||
| @@ -62,7 +62,7 @@ static kmem_cache_t *isofs_inode_cachep; | |||
| 62 | static struct inode *isofs_alloc_inode(struct super_block *sb) | 62 | static struct inode *isofs_alloc_inode(struct super_block *sb) |
| 63 | { | 63 | { |
| 64 | struct iso_inode_info *ei; | 64 | struct iso_inode_info *ei; |
| 65 | ei = kmem_cache_alloc(isofs_inode_cachep, SLAB_KERNEL); | 65 | ei = kmem_cache_alloc(isofs_inode_cachep, GFP_KERNEL); |
| 66 | if (!ei) | 66 | if (!ei) |
| 67 | return NULL; | 67 | return NULL; |
| 68 | return &ei->vfs_inode; | 68 | return &ei->vfs_inode; |
diff --git a/fs/jffs2/super.c b/fs/jffs2/super.c index bc4b8106a490..77be534ce422 100644 --- a/fs/jffs2/super.c +++ b/fs/jffs2/super.c | |||
| @@ -33,7 +33,7 @@ static kmem_cache_t *jffs2_inode_cachep; | |||
| 33 | static struct inode *jffs2_alloc_inode(struct super_block *sb) | 33 | static struct inode *jffs2_alloc_inode(struct super_block *sb) |
| 34 | { | 34 | { |
| 35 | struct jffs2_inode_info *ei; | 35 | struct jffs2_inode_info *ei; |
| 36 | ei = (struct jffs2_inode_info *)kmem_cache_alloc(jffs2_inode_cachep, SLAB_KERNEL); | 36 | ei = (struct jffs2_inode_info *)kmem_cache_alloc(jffs2_inode_cachep, GFP_KERNEL); |
| 37 | if (!ei) | 37 | if (!ei) |
| 38 | return NULL; | 38 | return NULL; |
| 39 | return &ei->vfs_inode; | 39 | return &ei->vfs_inode; |
diff --git a/fs/locks.c b/fs/locks.c index e0b6a80649a0..a7b97d50c1e0 100644 --- a/fs/locks.c +++ b/fs/locks.c | |||
| @@ -147,7 +147,7 @@ static kmem_cache_t *filelock_cache __read_mostly; | |||
| 147 | /* Allocate an empty lock structure. */ | 147 | /* Allocate an empty lock structure. */ |
| 148 | static struct file_lock *locks_alloc_lock(void) | 148 | static struct file_lock *locks_alloc_lock(void) |
| 149 | { | 149 | { |
| 150 | return kmem_cache_alloc(filelock_cache, SLAB_KERNEL); | 150 | return kmem_cache_alloc(filelock_cache, GFP_KERNEL); |
| 151 | } | 151 | } |
| 152 | 152 | ||
| 153 | static void locks_release_private(struct file_lock *fl) | 153 | static void locks_release_private(struct file_lock *fl) |
diff --git a/fs/minix/inode.c b/fs/minix/inode.c index 1e36bae4d0eb..ce532c2deda8 100644 --- a/fs/minix/inode.c +++ b/fs/minix/inode.c | |||
| @@ -56,7 +56,7 @@ static kmem_cache_t * minix_inode_cachep; | |||
| 56 | static struct inode *minix_alloc_inode(struct super_block *sb) | 56 | static struct inode *minix_alloc_inode(struct super_block *sb) |
| 57 | { | 57 | { |
| 58 | struct minix_inode_info *ei; | 58 | struct minix_inode_info *ei; |
| 59 | ei = (struct minix_inode_info *)kmem_cache_alloc(minix_inode_cachep, SLAB_KERNEL); | 59 | ei = (struct minix_inode_info *)kmem_cache_alloc(minix_inode_cachep, GFP_KERNEL); |
| 60 | if (!ei) | 60 | if (!ei) |
| 61 | return NULL; | 61 | return NULL; |
| 62 | return &ei->vfs_inode; | 62 | return &ei->vfs_inode; |
diff --git a/fs/ncpfs/inode.c b/fs/ncpfs/inode.c index 72dad552aa00..ed84d899220c 100644 --- a/fs/ncpfs/inode.c +++ b/fs/ncpfs/inode.c | |||
| @@ -45,7 +45,7 @@ static kmem_cache_t * ncp_inode_cachep; | |||
| 45 | static struct inode *ncp_alloc_inode(struct super_block *sb) | 45 | static struct inode *ncp_alloc_inode(struct super_block *sb) |
| 46 | { | 46 | { |
| 47 | struct ncp_inode_info *ei; | 47 | struct ncp_inode_info *ei; |
| 48 | ei = (struct ncp_inode_info *)kmem_cache_alloc(ncp_inode_cachep, SLAB_KERNEL); | 48 | ei = (struct ncp_inode_info *)kmem_cache_alloc(ncp_inode_cachep, GFP_KERNEL); |
| 49 | if (!ei) | 49 | if (!ei) |
| 50 | return NULL; | 50 | return NULL; |
| 51 | return &ei->vfs_inode; | 51 | return &ei->vfs_inode; |
diff --git a/fs/nfs/direct.c b/fs/nfs/direct.c index bdfabf854a51..769fd0a0c772 100644 --- a/fs/nfs/direct.c +++ b/fs/nfs/direct.c | |||
| @@ -143,7 +143,7 @@ static inline struct nfs_direct_req *nfs_direct_req_alloc(void) | |||
| 143 | { | 143 | { |
| 144 | struct nfs_direct_req *dreq; | 144 | struct nfs_direct_req *dreq; |
| 145 | 145 | ||
| 146 | dreq = kmem_cache_alloc(nfs_direct_cachep, SLAB_KERNEL); | 146 | dreq = kmem_cache_alloc(nfs_direct_cachep, GFP_KERNEL); |
| 147 | if (!dreq) | 147 | if (!dreq) |
| 148 | return NULL; | 148 | return NULL; |
| 149 | 149 | ||
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 08cc4c5919ab..6b53aae4ed2c 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c | |||
| @@ -1080,7 +1080,7 @@ void nfs4_clear_inode(struct inode *inode) | |||
| 1080 | struct inode *nfs_alloc_inode(struct super_block *sb) | 1080 | struct inode *nfs_alloc_inode(struct super_block *sb) |
| 1081 | { | 1081 | { |
| 1082 | struct nfs_inode *nfsi; | 1082 | struct nfs_inode *nfsi; |
| 1083 | nfsi = (struct nfs_inode *)kmem_cache_alloc(nfs_inode_cachep, SLAB_KERNEL); | 1083 | nfsi = (struct nfs_inode *)kmem_cache_alloc(nfs_inode_cachep, GFP_KERNEL); |
| 1084 | if (!nfsi) | 1084 | if (!nfsi) |
| 1085 | return NULL; | 1085 | return NULL; |
| 1086 | nfsi->flags = 0UL; | 1086 | nfsi->flags = 0UL; |
diff --git a/fs/nfs/pagelist.c b/fs/nfs/pagelist.c index 829af323f288..a1561a820abe 100644 --- a/fs/nfs/pagelist.c +++ b/fs/nfs/pagelist.c | |||
| @@ -26,7 +26,7 @@ static inline struct nfs_page * | |||
| 26 | nfs_page_alloc(void) | 26 | nfs_page_alloc(void) |
| 27 | { | 27 | { |
| 28 | struct nfs_page *p; | 28 | struct nfs_page *p; |
| 29 | p = kmem_cache_alloc(nfs_page_cachep, SLAB_KERNEL); | 29 | p = kmem_cache_alloc(nfs_page_cachep, GFP_KERNEL); |
| 30 | if (p) { | 30 | if (p) { |
| 31 | memset(p, 0, sizeof(*p)); | 31 | memset(p, 0, sizeof(*p)); |
| 32 | INIT_LIST_HEAD(&p->wb_list); | 32 | INIT_LIST_HEAD(&p->wb_list); |
diff --git a/fs/openpromfs/inode.c b/fs/openpromfs/inode.c index 592a6402e851..911d1bcfc567 100644 --- a/fs/openpromfs/inode.c +++ b/fs/openpromfs/inode.c | |||
| @@ -336,7 +336,7 @@ static struct inode *openprom_alloc_inode(struct super_block *sb) | |||
| 336 | { | 336 | { |
| 337 | struct op_inode_info *oi; | 337 | struct op_inode_info *oi; |
| 338 | 338 | ||
| 339 | oi = kmem_cache_alloc(op_inode_cachep, SLAB_KERNEL); | 339 | oi = kmem_cache_alloc(op_inode_cachep, GFP_KERNEL); |
| 340 | if (!oi) | 340 | if (!oi) |
| 341 | return NULL; | 341 | return NULL; |
| 342 | 342 | ||
diff --git a/fs/proc/inode.c b/fs/proc/inode.c index 49dfb2ab783e..b24cdb2f17c1 100644 --- a/fs/proc/inode.c +++ b/fs/proc/inode.c | |||
| @@ -88,7 +88,7 @@ static struct inode *proc_alloc_inode(struct super_block *sb) | |||
| 88 | struct proc_inode *ei; | 88 | struct proc_inode *ei; |
| 89 | struct inode *inode; | 89 | struct inode *inode; |
| 90 | 90 | ||
| 91 | ei = (struct proc_inode *)kmem_cache_alloc(proc_inode_cachep, SLAB_KERNEL); | 91 | ei = (struct proc_inode *)kmem_cache_alloc(proc_inode_cachep, GFP_KERNEL); |
| 92 | if (!ei) | 92 | if (!ei) |
| 93 | return NULL; | 93 | return NULL; |
| 94 | ei->pid = NULL; | 94 | ei->pid = NULL; |
diff --git a/fs/qnx4/inode.c b/fs/qnx4/inode.c index 5a41db2a218d..5b943eb11d76 100644 --- a/fs/qnx4/inode.c +++ b/fs/qnx4/inode.c | |||
| @@ -520,7 +520,7 @@ static kmem_cache_t *qnx4_inode_cachep; | |||
| 520 | static struct inode *qnx4_alloc_inode(struct super_block *sb) | 520 | static struct inode *qnx4_alloc_inode(struct super_block *sb) |
| 521 | { | 521 | { |
| 522 | struct qnx4_inode_info *ei; | 522 | struct qnx4_inode_info *ei; |
| 523 | ei = kmem_cache_alloc(qnx4_inode_cachep, SLAB_KERNEL); | 523 | ei = kmem_cache_alloc(qnx4_inode_cachep, GFP_KERNEL); |
| 524 | if (!ei) | 524 | if (!ei) |
| 525 | return NULL; | 525 | return NULL; |
| 526 | return &ei->vfs_inode; | 526 | return &ei->vfs_inode; |
diff --git a/fs/reiserfs/super.c b/fs/reiserfs/super.c index 17249994110f..32332516d656 100644 --- a/fs/reiserfs/super.c +++ b/fs/reiserfs/super.c | |||
| @@ -496,7 +496,7 @@ static struct inode *reiserfs_alloc_inode(struct super_block *sb) | |||
| 496 | { | 496 | { |
| 497 | struct reiserfs_inode_info *ei; | 497 | struct reiserfs_inode_info *ei; |
| 498 | ei = (struct reiserfs_inode_info *) | 498 | ei = (struct reiserfs_inode_info *) |
| 499 | kmem_cache_alloc(reiserfs_inode_cachep, SLAB_KERNEL); | 499 | kmem_cache_alloc(reiserfs_inode_cachep, GFP_KERNEL); |
| 500 | if (!ei) | 500 | if (!ei) |
| 501 | return NULL; | 501 | return NULL; |
| 502 | return &ei->vfs_inode; | 502 | return &ei->vfs_inode; |
diff --git a/fs/romfs/inode.c b/fs/romfs/inode.c index ddcd9e1ef282..d1b455f9b669 100644 --- a/fs/romfs/inode.c +++ b/fs/romfs/inode.c | |||
| @@ -555,7 +555,7 @@ static kmem_cache_t * romfs_inode_cachep; | |||
| 555 | static struct inode *romfs_alloc_inode(struct super_block *sb) | 555 | static struct inode *romfs_alloc_inode(struct super_block *sb) |
| 556 | { | 556 | { |
| 557 | struct romfs_inode_info *ei; | 557 | struct romfs_inode_info *ei; |
| 558 | ei = (struct romfs_inode_info *)kmem_cache_alloc(romfs_inode_cachep, SLAB_KERNEL); | 558 | ei = (struct romfs_inode_info *)kmem_cache_alloc(romfs_inode_cachep, GFP_KERNEL); |
| 559 | if (!ei) | 559 | if (!ei) |
| 560 | return NULL; | 560 | return NULL; |
| 561 | return &ei->vfs_inode; | 561 | return &ei->vfs_inode; |
diff --git a/fs/smbfs/inode.c b/fs/smbfs/inode.c index 2c122ee83adb..221617103484 100644 --- a/fs/smbfs/inode.c +++ b/fs/smbfs/inode.c | |||
| @@ -55,7 +55,7 @@ static kmem_cache_t *smb_inode_cachep; | |||
| 55 | static struct inode *smb_alloc_inode(struct super_block *sb) | 55 | static struct inode *smb_alloc_inode(struct super_block *sb) |
| 56 | { | 56 | { |
| 57 | struct smb_inode_info *ei; | 57 | struct smb_inode_info *ei; |
| 58 | ei = (struct smb_inode_info *)kmem_cache_alloc(smb_inode_cachep, SLAB_KERNEL); | 58 | ei = (struct smb_inode_info *)kmem_cache_alloc(smb_inode_cachep, GFP_KERNEL); |
| 59 | if (!ei) | 59 | if (!ei) |
| 60 | return NULL; | 60 | return NULL; |
| 61 | return &ei->vfs_inode; | 61 | return &ei->vfs_inode; |
diff --git a/fs/smbfs/request.c b/fs/smbfs/request.c index 0fb74697abc4..3eb1402191b9 100644 --- a/fs/smbfs/request.c +++ b/fs/smbfs/request.c | |||
| @@ -61,7 +61,7 @@ static struct smb_request *smb_do_alloc_request(struct smb_sb_info *server, | |||
| 61 | struct smb_request *req; | 61 | struct smb_request *req; |
| 62 | unsigned char *buf = NULL; | 62 | unsigned char *buf = NULL; |
| 63 | 63 | ||
| 64 | req = kmem_cache_alloc(req_cachep, SLAB_KERNEL); | 64 | req = kmem_cache_alloc(req_cachep, GFP_KERNEL); |
| 65 | VERBOSE("allocating request: %p\n", req); | 65 | VERBOSE("allocating request: %p\n", req); |
| 66 | if (!req) | 66 | if (!req) |
| 67 | goto out; | 67 | goto out; |
diff --git a/fs/sysv/inode.c b/fs/sysv/inode.c index d63c5e48b050..a6ca12b747cf 100644 --- a/fs/sysv/inode.c +++ b/fs/sysv/inode.c | |||
| @@ -307,7 +307,7 @@ static struct inode *sysv_alloc_inode(struct super_block *sb) | |||
| 307 | { | 307 | { |
| 308 | struct sysv_inode_info *si; | 308 | struct sysv_inode_info *si; |
| 309 | 309 | ||
| 310 | si = kmem_cache_alloc(sysv_inode_cachep, SLAB_KERNEL); | 310 | si = kmem_cache_alloc(sysv_inode_cachep, GFP_KERNEL); |
| 311 | if (!si) | 311 | if (!si) |
| 312 | return NULL; | 312 | return NULL; |
| 313 | return &si->vfs_inode; | 313 | return &si->vfs_inode; |
diff --git a/fs/udf/super.c b/fs/udf/super.c index 1aea6a4f9a4a..e50f24221dea 100644 --- a/fs/udf/super.c +++ b/fs/udf/super.c | |||
| @@ -112,7 +112,7 @@ static kmem_cache_t * udf_inode_cachep; | |||
| 112 | static struct inode *udf_alloc_inode(struct super_block *sb) | 112 | static struct inode *udf_alloc_inode(struct super_block *sb) |
| 113 | { | 113 | { |
| 114 | struct udf_inode_info *ei; | 114 | struct udf_inode_info *ei; |
| 115 | ei = (struct udf_inode_info *)kmem_cache_alloc(udf_inode_cachep, SLAB_KERNEL); | 115 | ei = (struct udf_inode_info *)kmem_cache_alloc(udf_inode_cachep, GFP_KERNEL); |
| 116 | if (!ei) | 116 | if (!ei) |
| 117 | return NULL; | 117 | return NULL; |
| 118 | 118 | ||
diff --git a/fs/ufs/super.c b/fs/ufs/super.c index ec79e3091d1b..85a88c0c5e68 100644 --- a/fs/ufs/super.c +++ b/fs/ufs/super.c | |||
| @@ -1209,7 +1209,7 @@ static kmem_cache_t * ufs_inode_cachep; | |||
| 1209 | static struct inode *ufs_alloc_inode(struct super_block *sb) | 1209 | static struct inode *ufs_alloc_inode(struct super_block *sb) |
| 1210 | { | 1210 | { |
| 1211 | struct ufs_inode_info *ei; | 1211 | struct ufs_inode_info *ei; |
| 1212 | ei = (struct ufs_inode_info *)kmem_cache_alloc(ufs_inode_cachep, SLAB_KERNEL); | 1212 | ei = (struct ufs_inode_info *)kmem_cache_alloc(ufs_inode_cachep, GFP_KERNEL); |
| 1213 | if (!ei) | 1213 | if (!ei) |
| 1214 | return NULL; | 1214 | return NULL; |
| 1215 | ei->vfs_inode.i_version = 1; | 1215 | ei->vfs_inode.i_version = 1; |
diff --git a/include/linux/fs.h b/include/linux/fs.h index a8039c8d8cbb..94b831b8157c 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -1483,7 +1483,7 @@ extern void __init vfs_caches_init(unsigned long); | |||
| 1483 | 1483 | ||
| 1484 | extern struct kmem_cache *names_cachep; | 1484 | extern struct kmem_cache *names_cachep; |
| 1485 | 1485 | ||
| 1486 | #define __getname() kmem_cache_alloc(names_cachep, SLAB_KERNEL) | 1486 | #define __getname() kmem_cache_alloc(names_cachep, GFP_KERNEL) |
| 1487 | #define __putname(name) kmem_cache_free(names_cachep, (void *)(name)) | 1487 | #define __putname(name) kmem_cache_free(names_cachep, (void *)(name)) |
| 1488 | #ifndef CONFIG_AUDITSYSCALL | 1488 | #ifndef CONFIG_AUDITSYSCALL |
| 1489 | #define putname(name) __putname(name) | 1489 | #define putname(name) __putname(name) |
diff --git a/include/linux/rmap.h b/include/linux/rmap.h index db2c1df4fef9..61c2ab634b00 100644 --- a/include/linux/rmap.h +++ b/include/linux/rmap.h | |||
| @@ -34,7 +34,7 @@ extern kmem_cache_t *anon_vma_cachep; | |||
| 34 | 34 | ||
| 35 | static inline struct anon_vma *anon_vma_alloc(void) | 35 | static inline struct anon_vma *anon_vma_alloc(void) |
| 36 | { | 36 | { |
| 37 | return kmem_cache_alloc(anon_vma_cachep, SLAB_KERNEL); | 37 | return kmem_cache_alloc(anon_vma_cachep, GFP_KERNEL); |
| 38 | } | 38 | } |
| 39 | 39 | ||
| 40 | static inline void anon_vma_free(struct anon_vma *anon_vma) | 40 | static inline void anon_vma_free(struct anon_vma *anon_vma) |
diff --git a/include/linux/slab.h b/include/linux/slab.h index 34b046ea88f1..639f65efa46e 100644 --- a/include/linux/slab.h +++ b/include/linux/slab.h | |||
| @@ -19,7 +19,6 @@ typedef struct kmem_cache kmem_cache_t; | |||
| 19 | #include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */ | 19 | #include <asm/cache.h> /* kmalloc_sizes.h needs L1_CACHE_BYTES */ |
| 20 | 20 | ||
| 21 | /* flags for kmem_cache_alloc() */ | 21 | /* flags for kmem_cache_alloc() */ |
| 22 | #define SLAB_KERNEL GFP_KERNEL | ||
| 23 | #define SLAB_DMA GFP_DMA | 22 | #define SLAB_DMA GFP_DMA |
| 24 | 23 | ||
| 25 | /* flags to pass to kmem_cache_create(). | 24 | /* flags to pass to kmem_cache_create(). |
diff --git a/include/linux/taskstats_kern.h b/include/linux/taskstats_kern.h index 6562a2050a25..f81a5af8a4f8 100644 --- a/include/linux/taskstats_kern.h +++ b/include/linux/taskstats_kern.h | |||
| @@ -35,7 +35,7 @@ static inline void taskstats_tgid_alloc(struct task_struct *tsk) | |||
| 35 | return; | 35 | return; |
| 36 | 36 | ||
| 37 | /* No problem if kmem_cache_zalloc() fails */ | 37 | /* No problem if kmem_cache_zalloc() fails */ |
| 38 | stats = kmem_cache_zalloc(taskstats_cache, SLAB_KERNEL); | 38 | stats = kmem_cache_zalloc(taskstats_cache, GFP_KERNEL); |
| 39 | 39 | ||
| 40 | spin_lock_irq(&tsk->sighand->siglock); | 40 | spin_lock_irq(&tsk->sighand->siglock); |
| 41 | if (!sig->stats) { | 41 | if (!sig->stats) { |
diff --git a/ipc/mqueue.c b/ipc/mqueue.c index 7c274002c9f5..813bb941342b 100644 --- a/ipc/mqueue.c +++ b/ipc/mqueue.c | |||
| @@ -224,7 +224,7 @@ static struct inode *mqueue_alloc_inode(struct super_block *sb) | |||
| 224 | { | 224 | { |
| 225 | struct mqueue_inode_info *ei; | 225 | struct mqueue_inode_info *ei; |
| 226 | 226 | ||
| 227 | ei = kmem_cache_alloc(mqueue_inode_cachep, SLAB_KERNEL); | 227 | ei = kmem_cache_alloc(mqueue_inode_cachep, GFP_KERNEL); |
| 228 | if (!ei) | 228 | if (!ei) |
| 229 | return NULL; | 229 | return NULL; |
| 230 | return &ei->vfs_inode; | 230 | return &ei->vfs_inode; |
diff --git a/kernel/delayacct.c b/kernel/delayacct.c index 66a0ea48751d..70e9ec603082 100644 --- a/kernel/delayacct.c +++ b/kernel/delayacct.c | |||
| @@ -41,7 +41,7 @@ void delayacct_init(void) | |||
| 41 | 41 | ||
| 42 | void __delayacct_tsk_init(struct task_struct *tsk) | 42 | void __delayacct_tsk_init(struct task_struct *tsk) |
| 43 | { | 43 | { |
| 44 | tsk->delays = kmem_cache_zalloc(delayacct_cache, SLAB_KERNEL); | 44 | tsk->delays = kmem_cache_zalloc(delayacct_cache, GFP_KERNEL); |
| 45 | if (tsk->delays) | 45 | if (tsk->delays) |
| 46 | spin_lock_init(&tsk->delays->lock); | 46 | spin_lock_init(&tsk->delays->lock); |
| 47 | } | 47 | } |
diff --git a/kernel/fork.c b/kernel/fork.c index 5678e6c61ef2..711aa5f10da7 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
| @@ -237,7 +237,7 @@ static inline int dup_mmap(struct mm_struct *mm, struct mm_struct *oldmm) | |||
| 237 | goto fail_nomem; | 237 | goto fail_nomem; |
| 238 | charge = len; | 238 | charge = len; |
| 239 | } | 239 | } |
| 240 | tmp = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 240 | tmp = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 241 | if (!tmp) | 241 | if (!tmp) |
| 242 | goto fail_nomem; | 242 | goto fail_nomem; |
| 243 | *tmp = *mpnt; | 243 | *tmp = *mpnt; |
| @@ -319,7 +319,7 @@ static inline void mm_free_pgd(struct mm_struct * mm) | |||
| 319 | 319 | ||
| 320 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(mmlist_lock); | 320 | __cacheline_aligned_in_smp DEFINE_SPINLOCK(mmlist_lock); |
| 321 | 321 | ||
| 322 | #define allocate_mm() (kmem_cache_alloc(mm_cachep, SLAB_KERNEL)) | 322 | #define allocate_mm() (kmem_cache_alloc(mm_cachep, GFP_KERNEL)) |
| 323 | #define free_mm(mm) (kmem_cache_free(mm_cachep, (mm))) | 323 | #define free_mm(mm) (kmem_cache_free(mm_cachep, (mm))) |
| 324 | 324 | ||
| 325 | #include <linux/init_task.h> | 325 | #include <linux/init_task.h> |
| @@ -621,7 +621,7 @@ static struct files_struct *alloc_files(void) | |||
| 621 | struct files_struct *newf; | 621 | struct files_struct *newf; |
| 622 | struct fdtable *fdt; | 622 | struct fdtable *fdt; |
| 623 | 623 | ||
| 624 | newf = kmem_cache_alloc(files_cachep, SLAB_KERNEL); | 624 | newf = kmem_cache_alloc(files_cachep, GFP_KERNEL); |
| 625 | if (!newf) | 625 | if (!newf) |
| 626 | goto out; | 626 | goto out; |
| 627 | 627 | ||
diff --git a/kernel/taskstats.c b/kernel/taskstats.c index d3d28919d4b4..1b2b326cf703 100644 --- a/kernel/taskstats.c +++ b/kernel/taskstats.c | |||
| @@ -425,7 +425,7 @@ void taskstats_exit_alloc(struct taskstats **ptidstats, unsigned int *mycpu) | |||
| 425 | *mycpu = raw_smp_processor_id(); | 425 | *mycpu = raw_smp_processor_id(); |
| 426 | 426 | ||
| 427 | *ptidstats = NULL; | 427 | *ptidstats = NULL; |
| 428 | tmp = kmem_cache_zalloc(taskstats_cache, SLAB_KERNEL); | 428 | tmp = kmem_cache_zalloc(taskstats_cache, GFP_KERNEL); |
| 429 | if (!tmp) | 429 | if (!tmp) |
| 430 | return; | 430 | return; |
| 431 | 431 | ||
diff --git a/kernel/user.c b/kernel/user.c index 220e586127a0..c1f93c164c93 100644 --- a/kernel/user.c +++ b/kernel/user.c | |||
| @@ -132,7 +132,7 @@ struct user_struct * alloc_uid(uid_t uid) | |||
| 132 | if (!up) { | 132 | if (!up) { |
| 133 | struct user_struct *new; | 133 | struct user_struct *new; |
| 134 | 134 | ||
| 135 | new = kmem_cache_alloc(uid_cachep, SLAB_KERNEL); | 135 | new = kmem_cache_alloc(uid_cachep, GFP_KERNEL); |
| 136 | if (!new) | 136 | if (!new) |
| 137 | return NULL; | 137 | return NULL; |
| 138 | new->uid = uid; | 138 | new->uid = uid; |
diff --git a/mm/mempolicy.c b/mm/mempolicy.c index e7b69c90cfd6..ad864f8708b0 100644 --- a/mm/mempolicy.c +++ b/mm/mempolicy.c | |||
| @@ -1326,7 +1326,7 @@ struct mempolicy *__mpol_copy(struct mempolicy *old) | |||
| 1326 | atomic_set(&new->refcnt, 1); | 1326 | atomic_set(&new->refcnt, 1); |
| 1327 | if (new->policy == MPOL_BIND) { | 1327 | if (new->policy == MPOL_BIND) { |
| 1328 | int sz = ksize(old->v.zonelist); | 1328 | int sz = ksize(old->v.zonelist); |
| 1329 | new->v.zonelist = kmemdup(old->v.zonelist, sz, SLAB_KERNEL); | 1329 | new->v.zonelist = kmemdup(old->v.zonelist, sz, GFP_KERNEL); |
| 1330 | if (!new->v.zonelist) { | 1330 | if (!new->v.zonelist) { |
| 1331 | kmem_cache_free(policy_cache, new); | 1331 | kmem_cache_free(policy_cache, new); |
| 1332 | return ERR_PTR(-ENOMEM); | 1332 | return ERR_PTR(-ENOMEM); |
| @@ -1736,7 +1736,7 @@ int split_vma(struct mm_struct * mm, struct vm_area_struct * vma, | |||
| 1736 | if (mm->map_count >= sysctl_max_map_count) | 1736 | if (mm->map_count >= sysctl_max_map_count) |
| 1737 | return -ENOMEM; | 1737 | return -ENOMEM; |
| 1738 | 1738 | ||
| 1739 | new = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 1739 | new = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 1740 | if (!new) | 1740 | if (!new) |
| 1741 | return -ENOMEM; | 1741 | return -ENOMEM; |
| 1742 | 1742 | ||
| @@ -2057,7 +2057,7 @@ struct vm_area_struct *copy_vma(struct vm_area_struct **vmap, | |||
| 2057 | vma_start < new_vma->vm_end) | 2057 | vma_start < new_vma->vm_end) |
| 2058 | *vmap = new_vma; | 2058 | *vmap = new_vma; |
| 2059 | } else { | 2059 | } else { |
| 2060 | new_vma = kmem_cache_alloc(vm_area_cachep, SLAB_KERNEL); | 2060 | new_vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); |
| 2061 | if (new_vma) { | 2061 | if (new_vma) { |
| 2062 | *new_vma = *vma; | 2062 | *new_vma = *vma; |
| 2063 | pol = mpol_copy(vma_policy(vma)); | 2063 | pol = mpol_copy(vma_policy(vma)); |
diff --git a/mm/shmem.c b/mm/shmem.c index 4959535fc14c..bdaecfdaabd4 100644 --- a/mm/shmem.c +++ b/mm/shmem.c | |||
| @@ -2263,7 +2263,7 @@ static struct kmem_cache *shmem_inode_cachep; | |||
| 2263 | static struct inode *shmem_alloc_inode(struct super_block *sb) | 2263 | static struct inode *shmem_alloc_inode(struct super_block *sb) |
| 2264 | { | 2264 | { |
| 2265 | struct shmem_inode_info *p; | 2265 | struct shmem_inode_info *p; |
| 2266 | p = (struct shmem_inode_info *)kmem_cache_alloc(shmem_inode_cachep, SLAB_KERNEL); | 2266 | p = (struct shmem_inode_info *)kmem_cache_alloc(shmem_inode_cachep, GFP_KERNEL); |
| 2267 | if (!p) | 2267 | if (!p) |
| 2268 | return NULL; | 2268 | return NULL; |
| 2269 | return &p->vfs_inode; | 2269 | return &p->vfs_inode; |
| @@ -2237,7 +2237,7 @@ kmem_cache_create (const char *name, size_t size, size_t align, | |||
| 2237 | align = ralign; | 2237 | align = ralign; |
| 2238 | 2238 | ||
| 2239 | /* Get cache's description obj. */ | 2239 | /* Get cache's description obj. */ |
| 2240 | cachep = kmem_cache_zalloc(&cache_cache, SLAB_KERNEL); | 2240 | cachep = kmem_cache_zalloc(&cache_cache, GFP_KERNEL); |
| 2241 | if (!cachep) | 2241 | if (!cachep) |
| 2242 | goto oops; | 2242 | goto oops; |
| 2243 | 2243 | ||
diff --git a/net/decnet/dn_table.c b/net/decnet/dn_table.c index bdbc3f431668..101e5ccaf096 100644 --- a/net/decnet/dn_table.c +++ b/net/decnet/dn_table.c | |||
| @@ -590,7 +590,7 @@ create: | |||
| 590 | 590 | ||
| 591 | replace: | 591 | replace: |
| 592 | err = -ENOBUFS; | 592 | err = -ENOBUFS; |
| 593 | new_f = kmem_cache_alloc(dn_hash_kmem, SLAB_KERNEL); | 593 | new_f = kmem_cache_alloc(dn_hash_kmem, GFP_KERNEL); |
| 594 | if (new_f == NULL) | 594 | if (new_f == NULL) |
| 595 | goto out; | 595 | goto out; |
| 596 | 596 | ||
diff --git a/net/ipv4/fib_hash.c b/net/ipv4/fib_hash.c index 107bb6cbb0b3..4463443e42cd 100644 --- a/net/ipv4/fib_hash.c +++ b/net/ipv4/fib_hash.c | |||
| @@ -485,13 +485,13 @@ static int fn_hash_insert(struct fib_table *tb, struct fib_config *cfg) | |||
| 485 | goto out; | 485 | goto out; |
| 486 | 486 | ||
| 487 | err = -ENOBUFS; | 487 | err = -ENOBUFS; |
| 488 | new_fa = kmem_cache_alloc(fn_alias_kmem, SLAB_KERNEL); | 488 | new_fa = kmem_cache_alloc(fn_alias_kmem, GFP_KERNEL); |
| 489 | if (new_fa == NULL) | 489 | if (new_fa == NULL) |
| 490 | goto out; | 490 | goto out; |
| 491 | 491 | ||
| 492 | new_f = NULL; | 492 | new_f = NULL; |
| 493 | if (!f) { | 493 | if (!f) { |
| 494 | new_f = kmem_cache_alloc(fn_hash_kmem, SLAB_KERNEL); | 494 | new_f = kmem_cache_alloc(fn_hash_kmem, GFP_KERNEL); |
| 495 | if (new_f == NULL) | 495 | if (new_f == NULL) |
| 496 | goto out_free_new_fa; | 496 | goto out_free_new_fa; |
| 497 | 497 | ||
diff --git a/net/ipv4/fib_trie.c b/net/ipv4/fib_trie.c index d17990ec724f..6be6caf1af37 100644 --- a/net/ipv4/fib_trie.c +++ b/net/ipv4/fib_trie.c | |||
| @@ -1187,7 +1187,7 @@ static int fn_trie_insert(struct fib_table *tb, struct fib_config *cfg) | |||
| 1187 | u8 state; | 1187 | u8 state; |
| 1188 | 1188 | ||
| 1189 | err = -ENOBUFS; | 1189 | err = -ENOBUFS; |
| 1190 | new_fa = kmem_cache_alloc(fn_alias_kmem, SLAB_KERNEL); | 1190 | new_fa = kmem_cache_alloc(fn_alias_kmem, GFP_KERNEL); |
| 1191 | if (new_fa == NULL) | 1191 | if (new_fa == NULL) |
| 1192 | goto out; | 1192 | goto out; |
| 1193 | 1193 | ||
| @@ -1232,7 +1232,7 @@ static int fn_trie_insert(struct fib_table *tb, struct fib_config *cfg) | |||
| 1232 | goto out; | 1232 | goto out; |
| 1233 | 1233 | ||
| 1234 | err = -ENOBUFS; | 1234 | err = -ENOBUFS; |
| 1235 | new_fa = kmem_cache_alloc(fn_alias_kmem, SLAB_KERNEL); | 1235 | new_fa = kmem_cache_alloc(fn_alias_kmem, GFP_KERNEL); |
| 1236 | if (new_fa == NULL) | 1236 | if (new_fa == NULL) |
| 1237 | goto out; | 1237 | goto out; |
| 1238 | 1238 | ||
diff --git a/net/socket.c b/net/socket.c index e8db54702a69..4f417c2ddc15 100644 --- a/net/socket.c +++ b/net/socket.c | |||
| @@ -236,7 +236,7 @@ static struct inode *sock_alloc_inode(struct super_block *sb) | |||
| 236 | { | 236 | { |
| 237 | struct socket_alloc *ei; | 237 | struct socket_alloc *ei; |
| 238 | 238 | ||
| 239 | ei = kmem_cache_alloc(sock_inode_cachep, SLAB_KERNEL); | 239 | ei = kmem_cache_alloc(sock_inode_cachep, GFP_KERNEL); |
| 240 | if (!ei) | 240 | if (!ei) |
| 241 | return NULL; | 241 | return NULL; |
| 242 | init_waitqueue_head(&ei->socket.wait); | 242 | init_waitqueue_head(&ei->socket.wait); |
diff --git a/net/sunrpc/rpc_pipe.c b/net/sunrpc/rpc_pipe.c index 49dba5febbbd..df753d0a884b 100644 --- a/net/sunrpc/rpc_pipe.c +++ b/net/sunrpc/rpc_pipe.c | |||
| @@ -143,7 +143,7 @@ static struct inode * | |||
| 143 | rpc_alloc_inode(struct super_block *sb) | 143 | rpc_alloc_inode(struct super_block *sb) |
| 144 | { | 144 | { |
| 145 | struct rpc_inode *rpci; | 145 | struct rpc_inode *rpci; |
| 146 | rpci = (struct rpc_inode *)kmem_cache_alloc(rpc_inode_cachep, SLAB_KERNEL); | 146 | rpci = (struct rpc_inode *)kmem_cache_alloc(rpc_inode_cachep, GFP_KERNEL); |
| 147 | if (!rpci) | 147 | if (!rpci) |
| 148 | return NULL; | 148 | return NULL; |
| 149 | return &rpci->vfs_inode; | 149 | return &rpci->vfs_inode; |
diff --git a/security/keys/key.c b/security/keys/key.c index 70eacbe5abde..157bac658bf9 100644 --- a/security/keys/key.c +++ b/security/keys/key.c | |||
| @@ -285,7 +285,7 @@ struct key *key_alloc(struct key_type *type, const char *desc, | |||
| 285 | } | 285 | } |
| 286 | 286 | ||
| 287 | /* allocate and initialise the key and its description */ | 287 | /* allocate and initialise the key and its description */ |
| 288 | key = kmem_cache_alloc(key_jar, SLAB_KERNEL); | 288 | key = kmem_cache_alloc(key_jar, GFP_KERNEL); |
| 289 | if (!key) | 289 | if (!key) |
| 290 | goto no_memory_2; | 290 | goto no_memory_2; |
| 291 | 291 | ||
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index 78f98fe084eb..ac1aeed0b289 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
| @@ -181,7 +181,7 @@ static int inode_alloc_security(struct inode *inode) | |||
| 181 | struct task_security_struct *tsec = current->security; | 181 | struct task_security_struct *tsec = current->security; |
| 182 | struct inode_security_struct *isec; | 182 | struct inode_security_struct *isec; |
| 183 | 183 | ||
| 184 | isec = kmem_cache_alloc(sel_inode_cache, SLAB_KERNEL); | 184 | isec = kmem_cache_alloc(sel_inode_cache, GFP_KERNEL); |
| 185 | if (!isec) | 185 | if (!isec) |
| 186 | return -ENOMEM; | 186 | return -ENOMEM; |
| 187 | 187 | ||
diff --git a/security/selinux/ss/avtab.c b/security/selinux/ss/avtab.c index d049c7acbc8b..2dfc6134c2c2 100644 --- a/security/selinux/ss/avtab.c +++ b/security/selinux/ss/avtab.c | |||
| @@ -36,7 +36,7 @@ avtab_insert_node(struct avtab *h, int hvalue, | |||
| 36 | struct avtab_key *key, struct avtab_datum *datum) | 36 | struct avtab_key *key, struct avtab_datum *datum) |
| 37 | { | 37 | { |
| 38 | struct avtab_node * newnode; | 38 | struct avtab_node * newnode; |
| 39 | newnode = kmem_cache_alloc(avtab_node_cachep, SLAB_KERNEL); | 39 | newnode = kmem_cache_alloc(avtab_node_cachep, GFP_KERNEL); |
| 40 | if (newnode == NULL) | 40 | if (newnode == NULL) |
| 41 | return NULL; | 41 | return NULL; |
| 42 | memset(newnode, 0, sizeof(struct avtab_node)); | 42 | memset(newnode, 0, sizeof(struct avtab_node)); |
