diff options
author | Christoph Lameter <clameter@sgi.com> | 2008-02-16 02:45:25 -0500 |
---|---|---|
committer | Christoph Lameter <clameter@sgi.com> | 2008-03-03 15:22:31 -0500 |
commit | 27d9e4e94862c89d171cf70911b4f11ad69fb54e (patch) | |
tree | 630d7af09633c209e4b2d8390146f2af1074a37d /mm/slub.c | |
parent | d692ef6dcd20da60786470654410e85f29c2ddd9 (diff) |
slub: Use the objsize from the kmem_cache_cpu structure
No need to access the kmem_cache structure. We have the same value
in kmem_cache_cpu.
Reviewed-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Christoph Lameter <clameter@sgi.com>
Diffstat (limited to 'mm/slub.c')
-rw-r--r-- | mm/slub.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1681,8 +1681,8 @@ static __always_inline void slab_free(struct kmem_cache *s, | |||
1681 | unsigned long flags; | 1681 | unsigned long flags; |
1682 | 1682 | ||
1683 | local_irq_save(flags); | 1683 | local_irq_save(flags); |
1684 | debug_check_no_locks_freed(object, s->objsize); | ||
1685 | c = get_cpu_slab(s, smp_processor_id()); | 1684 | c = get_cpu_slab(s, smp_processor_id()); |
1685 | debug_check_no_locks_freed(object, c->objsize); | ||
1686 | if (likely(page == c->page && c->node >= 0)) { | 1686 | if (likely(page == c->page && c->node >= 0)) { |
1687 | object[c->offset] = c->freelist; | 1687 | object[c->offset] = c->freelist; |
1688 | c->freelist = object; | 1688 | c->freelist = object; |