summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorJoonsoo Kim <iamjoonsoo.kim@lge.com>2013-10-24 03:07:47 +0200
committerPekka Enberg <penberg@iki.fi>2013-10-24 19:17:34 +0200
commit45eed508de6cec3174040f800aaf90d60c7b5b5b (patch)
treefb54ee5206eb248007f3f97ac9940f095a4a9c47 /mm
parentslab: remove kmem_bufctl_t (diff)
downloadlinux-45eed508de6cec3174040f800aaf90d60c7b5b5b.tar.xz
linux-45eed508de6cec3174040f800aaf90d60c7b5b5b.zip
slab: remove SLAB_LIMIT
It's useless now, so remove it. Acked-by: Andi Kleen <ak@linux.intel.com> Acked-by: Christoph Lameter <cl@linux.com> Signed-off-by: Joonsoo Kim <iamjoonsoo.kim@lge.com> Signed-off-by: Pekka Enberg <penberg@iki.fi>
Diffstat (limited to 'mm')
-rw-r--r--mm/slab.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/mm/slab.c b/mm/slab.c
index 6ced1ccf8abb..c271d5b71093 100644
--- a/mm/slab.c
+++ b/mm/slab.c
@@ -163,8 +163,6 @@
*/
static bool pfmemalloc_active __read_mostly;
-#define SLAB_LIMIT (((unsigned int)(~0U))-1)
-
/*
* struct slab
*
@@ -626,8 +624,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size,
mgmt_size = 0;
nr_objs = slab_size / buffer_size;
- if (nr_objs > SLAB_LIMIT)
- nr_objs = SLAB_LIMIT;
} else {
/*
* Ignore padding for the initial guess. The padding
@@ -648,9 +644,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size,
> slab_size)
nr_objs--;
- if (nr_objs > SLAB_LIMIT)
- nr_objs = SLAB_LIMIT;
-
mgmt_size = slab_mgmt_size(nr_objs, align);
}
*num = nr_objs;