mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 16:16:15 -04:00
[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>
This commit is contained in:
parent
54e6ecb239
commit
e94b176609
114 changed files with 164 additions and 165 deletions
|
|
@ -285,7 +285,7 @@ struct key *key_alloc(struct key_type *type, const char *desc,
|
|||
}
|
||||
|
||||
/* allocate and initialise the key and its description */
|
||||
key = kmem_cache_alloc(key_jar, SLAB_KERNEL);
|
||||
key = kmem_cache_alloc(key_jar, GFP_KERNEL);
|
||||
if (!key)
|
||||
goto no_memory_2;
|
||||
|
||||
|
|
|
|||
|
|
@ -181,7 +181,7 @@ static int inode_alloc_security(struct inode *inode)
|
|||
struct task_security_struct *tsec = current->security;
|
||||
struct inode_security_struct *isec;
|
||||
|
||||
isec = kmem_cache_alloc(sel_inode_cache, SLAB_KERNEL);
|
||||
isec = kmem_cache_alloc(sel_inode_cache, GFP_KERNEL);
|
||||
if (!isec)
|
||||
return -ENOMEM;
|
||||
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ avtab_insert_node(struct avtab *h, int hvalue,
|
|||
struct avtab_key *key, struct avtab_datum *datum)
|
||||
{
|
||||
struct avtab_node * newnode;
|
||||
newnode = kmem_cache_alloc(avtab_node_cachep, SLAB_KERNEL);
|
||||
newnode = kmem_cache_alloc(avtab_node_cachep, GFP_KERNEL);
|
||||
if (newnode == NULL)
|
||||
return NULL;
|
||||
memset(newnode, 0, sizeof(struct avtab_node));
|
||||
|
|
|
|||
Loading…
Reference in a new issue