Skip to content

Commit

Permalink
slab: remove SLAB_LIMIT
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joonsoo Kim authored and Pekka Enberg committed Oct 24, 2013
1 parent 1602517 commit 45eed50
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions mm/slab.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,6 @@
*/
static bool pfmemalloc_active __read_mostly;

#define SLAB_LIMIT (((unsigned int)(~0U))-1)

/*
* struct slab
*
Expand Down Expand Up @@ -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
Expand All @@ -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;
Expand Down

0 comments on commit 45eed50

Please sign in to comment.