Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 27d9e4e9 authored by Christoph Lameter's avatar Christoph Lameter
Browse files

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: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
parent d692ef6d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1681,8 +1681,8 @@ static __always_inline void slab_free(struct kmem_cache *s,
	unsigned long flags;

	local_irq_save(flags);
	debug_check_no_locks_freed(object, s->objsize);
	c = get_cpu_slab(s, smp_processor_id());
	debug_check_no_locks_freed(object, c->objsize);
	if (likely(page == c->page && c->node >= 0)) {
		object[c->offset] = c->freelist;
		c->freelist = object;