diff options
author | Pekka J Enberg <penberg@cs.helsinki.fi> | 2008-03-01 22:43:54 +0100 |
---|---|---|
committer | Christoph Lameter <clameter@sgi.com> | 2008-03-03 21:22:32 +0100 |
commit | 7693143481730686362cc6360e3d47c012d9b2c8 (patch) | |
tree | c621d072280676d62c3ae61ea97d3e8c471d1f92 /mm | |
parent | slub: Fix up comments (diff) | |
download | linux-7693143481730686362cc6360e3d47c012d9b2c8.tar.xz linux-7693143481730686362cc6360e3d47c012d9b2c8.zip |
slub: look up object from the freelist once
We only need to look up object from c->page->freelist once in
__slab_alloc().
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Diffstat (limited to 'mm')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/slub.c b/mm/slub.c index 10d546954efa..db8026ba049f 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -1486,7 +1486,6 @@ load_freelist: if (unlikely(SlabDebug(c->page))) goto debug; - object = c->page->freelist; c->freelist = object[c->offset]; c->page->inuse = s->objects; c->page->freelist = NULL; @@ -1542,7 +1541,6 @@ new_slab: return NULL; debug: - object = c->page->freelist; if (!alloc_debug_processing(s, c->page, object, addr)) goto another_slab; |