Commit f7267c0c authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

[PATCH] slab: remove SLAB_USER

SLAB_USER is an alias of GFP_USER
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent e6b4f8da
...@@ -1334,7 +1334,7 @@ int ecryptfs_write_headers(struct dentry *ecryptfs_dentry, ...@@ -1334,7 +1334,7 @@ int ecryptfs_write_headers(struct dentry *ecryptfs_dentry,
goto out; goto out;
} }
/* Released in this function */ /* Released in this function */
page_virt = kmem_cache_alloc(ecryptfs_header_cache_0, SLAB_USER); page_virt = kmem_cache_alloc(ecryptfs_header_cache_0, GFP_USER);
if (!page_virt) { if (!page_virt) {
ecryptfs_printk(KERN_ERR, "Out of memory\n"); ecryptfs_printk(KERN_ERR, "Out of memory\n");
rc = -ENOMEM; rc = -ENOMEM;
...@@ -1493,7 +1493,7 @@ int ecryptfs_read_headers(struct dentry *ecryptfs_dentry, ...@@ -1493,7 +1493,7 @@ int ecryptfs_read_headers(struct dentry *ecryptfs_dentry,
&ecryptfs_inode_to_private(ecryptfs_dentry->d_inode)->crypt_stat; &ecryptfs_inode_to_private(ecryptfs_dentry->d_inode)->crypt_stat;
/* Read the first page from the underlying file */ /* Read the first page from the underlying file */
page_virt = kmem_cache_alloc(ecryptfs_header_cache_1, SLAB_USER); page_virt = kmem_cache_alloc(ecryptfs_header_cache_1, GFP_USER);
if (!page_virt) { if (!page_virt) {
rc = -ENOMEM; rc = -ENOMEM;
ecryptfs_printk(KERN_ERR, "Unable to allocate page_virt\n"); ecryptfs_printk(KERN_ERR, "Unable to allocate page_virt\n");
......
...@@ -404,7 +404,7 @@ static struct dentry *ecryptfs_lookup(struct inode *dir, struct dentry *dentry, ...@@ -404,7 +404,7 @@ static struct dentry *ecryptfs_lookup(struct inode *dir, struct dentry *dentry,
/* Released in this function */ /* Released in this function */
page_virt = page_virt =
(char *)kmem_cache_alloc(ecryptfs_header_cache_2, (char *)kmem_cache_alloc(ecryptfs_header_cache_2,
SLAB_USER); GFP_USER);
if (!page_virt) { if (!page_virt) {
rc = -ENOMEM; rc = -ENOMEM;
ecryptfs_printk(KERN_ERR, ecryptfs_printk(KERN_ERR,
......
...@@ -20,7 +20,6 @@ typedef struct kmem_cache kmem_cache_t; ...@@ -20,7 +20,6 @@ typedef struct kmem_cache kmem_cache_t;
/* flags for kmem_cache_alloc() */ /* flags for kmem_cache_alloc() */
#define SLAB_ATOMIC GFP_ATOMIC #define SLAB_ATOMIC GFP_ATOMIC
#define SLAB_USER GFP_USER
#define SLAB_KERNEL GFP_KERNEL #define SLAB_KERNEL GFP_KERNEL
#define SLAB_DMA GFP_DMA #define SLAB_DMA GFP_DMA
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment