diff options
author | Joonsoo Kim <iamjoonsoo.kim@lge.com> | 2013-10-23 21:07:47 -0400 |
---|---|---|
committer | Pekka Enberg <penberg@iki.fi> | 2013-10-24 13:17:34 -0400 |
commit | 45eed508de6cec3174040f800aaf90d60c7b5b5b (patch) | |
tree | fb54ee5206eb248007f3f97ac9940f095a4a9c47 /mm/slab.c | |
parent | 16025177e1e16529451108faed257db95c7c9d6a (diff) |
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/slab.c')
-rw-r--r-- | mm/slab.c | 7 |
1 files changed, 0 insertions, 7 deletions
@@ -163,8 +163,6 @@ | |||
163 | */ | 163 | */ |
164 | static bool pfmemalloc_active __read_mostly; | 164 | static bool pfmemalloc_active __read_mostly; |
165 | 165 | ||
166 | #define SLAB_LIMIT (((unsigned int)(~0U))-1) | ||
167 | |||
168 | /* | 166 | /* |
169 | * struct slab | 167 | * struct slab |
170 | * | 168 | * |
@@ -626,8 +624,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size, | |||
626 | mgmt_size = 0; | 624 | mgmt_size = 0; |
627 | nr_objs = slab_size / buffer_size; | 625 | nr_objs = slab_size / buffer_size; |
628 | 626 | ||
629 | if (nr_objs > SLAB_LIMIT) | ||
630 | nr_objs = SLAB_LIMIT; | ||
631 | } else { | 627 | } else { |
632 | /* | 628 | /* |
633 | * Ignore padding for the initial guess. The padding | 629 | * Ignore padding for the initial guess. The padding |
@@ -648,9 +644,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size, | |||
648 | > slab_size) | 644 | > slab_size) |
649 | nr_objs--; | 645 | nr_objs--; |
650 | 646 | ||
651 | if (nr_objs > SLAB_LIMIT) | ||
652 | nr_objs = SLAB_LIMIT; | ||
653 | |||
654 | mgmt_size = slab_mgmt_size(nr_objs, align); | 647 | mgmt_size = slab_mgmt_size(nr_objs, align); |
655 | } | 648 | } |
656 | *num = nr_objs; | 649 | *num = nr_objs; |