Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 248626
b: refs/heads/master
c: 442b06b
h: refs/heads/master
v: v3
  • Loading branch information
Christoph Lameter authored and Pekka Enberg committed May 21, 2011
1 parent 8f41be1 commit 4a6dc9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: bd07d87fd4b8a6af9820544b6bc6c37215d6f8ad
refs/heads/master: 442b06bcea23a01934d3da7ec5898fa154a6cafb
4 changes: 3 additions & 1 deletion trunk/mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -1881,6 +1881,8 @@ static void *__slab_alloc(struct kmem_cache *s, gfp_t gfpflags, int node,

page->inuse++;
page->freelist = get_freepointer(s, object);
deactivate_slab(s, c);
c->page = NULL;
c->node = NUMA_NO_NODE;
goto unlock_out;
}
Expand Down Expand Up @@ -2112,7 +2114,7 @@ static __always_inline void slab_free(struct kmem_cache *s,
tid = c->tid;
barrier();

if (likely(page == c->page && c->node != NUMA_NO_NODE)) {
if (likely(page == c->page)) {
set_freepointer(s, object, c->freelist);

if (unlikely(!this_cpu_cmpxchg_double(
Expand Down

0 comments on commit 4a6dc9f

Please sign in to comment.