mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
[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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
e94b176609
commit
441e143e95
6 changed files with 8 additions and 11 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue