Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 269308
b: refs/heads/master
c: 12d7963
h: refs/heads/master
v: v3
  • Loading branch information
Alex,Shi authored and Pekka Enberg committed Sep 13, 2011
1 parent e8a0deb commit ae29ac1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 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: aca726a07a71ff7aedc0e90a91f80a2701adcca5
refs/heads/master: 12d79634f8d7af5229b7d21143d50e7cf7d94177
6 changes: 2 additions & 4 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,6 @@ static void *get_partial_node(struct kmem_cache *s,
{
struct page *page, *page2;
void *object = NULL;
int count = 0;

/*
* Racy check. If we mistakenly see no partial slabs then we
Expand All @@ -1613,17 +1612,16 @@ static void *get_partial_node(struct kmem_cache *s,

spin_lock(&n->list_lock);
list_for_each_entry_safe(page, page2, &n->partial, lru) {
void *t = acquire_slab(s, n, page, count == 0);
void *t = acquire_slab(s, n, page, object == NULL);
int available;

if (!t)
break;

if (!count) {
if (!object) {
c->page = page;
c->node = page_to_nid(page);
stat(s, ALLOC_FROM_PARTIAL);
count++;
object = t;
available = page->objects - page->inuse;
} else {
Expand Down

0 comments on commit ae29ac1

Please sign in to comment.