diff options
Diffstat (limited to 'mm')
-rw-r--r-- | mm/mempolicy.c | 2 | ||||
-rw-r--r-- | mm/mmap.c | 4 | ||||
-rw-r--r-- | mm/shmem.c | 2 | ||||
-rw-r--r-- | mm/slab.c | 2 |
4 files changed, 5 insertions, 5 deletions
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 | ||