Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 63835
b: refs/heads/master
c: fcda3d8
h: refs/heads/master
i:
  63833: f8045e8
  63831: dc5cd8a
v: v3
  • Loading branch information
Christoph Lameter committed Aug 10, 2007
1 parent fd957b8 commit 1dab66b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 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: 6adb31c90c47262c8a25bf5097de9b3426caf3ae
refs/heads/master: fcda3d89bf1366f6801447eab2d8a75ac5b9c4ce
9 changes: 2 additions & 7 deletions trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -2500,23 +2500,18 @@ int kmem_cache_shrink(struct kmem_cache *s)
slab_unlock(page);
discard_slab(s, page);
} else {
if (n->nr_partial > MAX_PARTIAL)
list_move(&page->lru,
slabs_by_inuse + page->inuse);
list_move(&page->lru,
slabs_by_inuse + page->inuse);
}
}

if (n->nr_partial <= MAX_PARTIAL)
goto out;

/*
* Rebuild the partial list with the slabs filled up most
* first and the least used slabs at the end.
*/
for (i = s->objects - 1; i >= 0; i--)
list_splice(slabs_by_inuse + i, n->partial.prev);

out:
spin_unlock_irqrestore(&n->list_lock, flags);
}

Expand Down

0 comments on commit 1dab66b

Please sign in to comment.