diff options
author | Christoph Lameter <clameter@sgi.com> | 2007-05-06 17:50:17 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-05-07 15:12:57 -0400 |
commit | cfce66047f1893cb7d3abb0d53e65cbbd8d605f0 (patch) | |
tree | b6e533a6b3deee686c42abf6c9117154548c0aaf /mm/slab.c | |
parent | 4f104934591ed98534b3a4c3d17d972b790e9c42 (diff) |
Slab allocators: remove useless __GFP_NO_GROW flag
There is no user remaining and I have never seen any use of that flag.
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/slab.c')
-rw-r--r-- | mm/slab.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2746,9 +2746,7 @@ static int cache_grow(struct kmem_cache *cachep, | |||
2746 | * Be lazy and only check for valid flags here, keeping it out of the | 2746 | * Be lazy and only check for valid flags here, keeping it out of the |
2747 | * critical path in kmem_cache_alloc(). | 2747 | * critical path in kmem_cache_alloc(). |
2748 | */ | 2748 | */ |
2749 | BUG_ON(flags & ~(GFP_DMA | GFP_LEVEL_MASK | __GFP_NO_GROW)); | 2749 | BUG_ON(flags & ~(GFP_DMA | GFP_LEVEL_MASK)); |
2750 | if (flags & __GFP_NO_GROW) | ||
2751 | return 0; | ||
2752 | 2750 | ||
2753 | ctor_flags = SLAB_CTOR_CONSTRUCTOR; | 2751 | ctor_flags = SLAB_CTOR_CONSTRUCTOR; |
2754 | local_flags = (flags & GFP_LEVEL_MASK); | 2752 | local_flags = (flags & GFP_LEVEL_MASK); |
@@ -3252,7 +3250,7 @@ retry: | |||
3252 | flags | GFP_THISNODE, nid); | 3250 | flags | GFP_THISNODE, nid); |
3253 | } | 3251 | } |
3254 | 3252 | ||
3255 | if (!obj && !(flags & __GFP_NO_GROW)) { | 3253 | if (!obj) { |
3256 | /* | 3254 | /* |
3257 | * This allocation will be performed within the constraints | 3255 | * This allocation will be performed within the constraints |
3258 | * of the current cpuset / memory policy requirements. | 3256 | * of the current cpuset / memory policy requirements. |