提交 45eed508 编写于 作者: J Joonsoo Kim 提交者: Pekka Enberg

slab: remove SLAB_LIMIT

It's useless now, so remove it.
Acked-by: NAndi Kleen <ak@linux.intel.com>
Acked-by: NChristoph Lameter <cl@linux.com>
Signed-off-by: NJoonsoo Kim <iamjoonsoo.kim@lge.com>
Signed-off-by: NPekka Enberg <penberg@iki.fi>
上级 16025177
...@@ -163,8 +163,6 @@ ...@@ -163,8 +163,6 @@
*/ */
static bool pfmemalloc_active __read_mostly; static bool pfmemalloc_active __read_mostly;
#define SLAB_LIMIT (((unsigned int)(~0U))-1)
/* /*
* struct slab * struct slab
* *
...@@ -626,8 +624,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size, ...@@ -626,8 +624,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size,
mgmt_size = 0; mgmt_size = 0;
nr_objs = slab_size / buffer_size; nr_objs = slab_size / buffer_size;
if (nr_objs > SLAB_LIMIT)
nr_objs = SLAB_LIMIT;
} else { } else {
/* /*
* Ignore padding for the initial guess. The padding * Ignore padding for the initial guess. The padding
...@@ -648,9 +644,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size, ...@@ -648,9 +644,6 @@ static void cache_estimate(unsigned long gfporder, size_t buffer_size,
> slab_size) > slab_size)
nr_objs--; nr_objs--;
if (nr_objs > SLAB_LIMIT)
nr_objs = SLAB_LIMIT;
mgmt_size = slab_mgmt_size(nr_objs, align); mgmt_size = slab_mgmt_size(nr_objs, align);
} }
*num = nr_objs; *num = nr_objs;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册