[PATCH] slab: remove SLAB_DMA
SLAB_DMA is an alias of GFP_DMA. This is the last one so we remove the leftover comment too. 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
e94b176609
commit
441e143e95
@@ -2637,7 +2637,7 @@ static void cache_init_objs(struct kmem_cache *cachep,
|
||||
|
||||
static void kmem_flagcheck(struct kmem_cache *cachep, gfp_t flags)
|
||||
{
|
||||
if (flags & SLAB_DMA)
|
||||
if (flags & GFP_DMA)
|
||||
BUG_ON(!(cachep->gfpflags & GFP_DMA));
|
||||
else
|
||||
BUG_ON(cachep->gfpflags & GFP_DMA);
|
||||
@@ -2721,7 +2721,7 @@ static int cache_grow(struct kmem_cache *cachep, gfp_t flags, int nodeid)
|
||||
* Be lazy and only check for valid flags here, keeping it out of the
|
||||
* critical path in kmem_cache_alloc().
|
||||
*/
|
||||
BUG_ON(flags & ~(SLAB_DMA | GFP_LEVEL_MASK | __GFP_NO_GROW));
|
||||
BUG_ON(flags & ~(GFP_DMA | GFP_LEVEL_MASK | __GFP_NO_GROW));
|
||||
if (flags & __GFP_NO_GROW)
|
||||
return 0;
|
||||
|
||||
|
Reference in New Issue
Block a user