Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135875
b: refs/heads/master
c: c0bdb23
h: refs/heads/master
i:
  135873: 5e511a9
  135871: 145d7ae
v: v3
  • Loading branch information
David Rientjes authored and Pekka Enberg committed Feb 25, 2009
1 parent d2425b5 commit 76306d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 73d342b169db700b5a6ad626fe4b86911efec8db
refs/heads/master: c0bdb232b23b51c23e551041510ad6bea5ce5a92
6 changes: 3 additions & 3 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2170,7 +2170,7 @@ static int init_kmem_cache_nodes(struct kmem_cache *s, gfp_t gfpflags)
}
#endif

static void calculate_min_partial(struct kmem_cache *s, unsigned long min)
static void set_min_partial(struct kmem_cache *s, unsigned long min)
{
if (min < MIN_PARTIAL)
min = MIN_PARTIAL;
Expand Down Expand Up @@ -2321,7 +2321,7 @@ static int kmem_cache_open(struct kmem_cache *s, gfp_t gfpflags,
* The larger the object size is, the more pages we want on the partial
* list to avoid pounding the page allocator excessively.
*/
calculate_min_partial(s, ilog2(s->size));
set_min_partial(s, ilog2(s->size));
s->refcount = 1;
#ifdef CONFIG_NUMA
s->remote_node_defrag_ratio = 1000;
Expand Down Expand Up @@ -3853,7 +3853,7 @@ static ssize_t min_partial_store(struct kmem_cache *s, const char *buf,
if (err)
return err;

calculate_min_partial(s, min);
set_min_partial(s, min);
return length;
}
SLAB_ATTR(min_partial);
Expand Down

0 comments on commit 76306d1

Please sign in to comment.