[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:
committed by
Linus Torvalds
parent
54e6ecb239
commit
e94b176609
@@ -1326,7 +1326,7 @@ struct mempolicy *__mpol_copy(struct mempolicy *old)
|
||||
atomic_set(&new->refcnt, 1);
|
||||
if (new->policy == MPOL_BIND) {
|
||||
int sz = ksize(old->v.zonelist);
|
||||
new->v.zonelist = kmemdup(old->v.zonelist, sz, SLAB_KERNEL);
|
||||
new->v.zonelist = kmemdup(old->v.zonelist, sz, GFP_KERNEL);
|
||||
if (!new->v.zonelist) {
|
||||
kmem_cache_free(policy_cache, new);
|
||||
return ERR_PTR(-ENOMEM);
|
||||
|
Reference in New Issue
Block a user