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

Commit 1a00df4a authored by Akinobu Mita's avatar Akinobu Mita Committed by Pekka Enberg
Browse files

slub: use get_track()



Use get_track() in set_track()

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
parent 6047a007
Loading
Loading
Loading
Loading
+1 −7
Original line number Diff line number Diff line
@@ -374,14 +374,8 @@ static struct track *get_track(struct kmem_cache *s, void *object,
static void set_track(struct kmem_cache *s, void *object,
			enum track_item alloc, unsigned long addr)
{
	struct track *p;

	if (s->offset)
		p = object + s->offset + sizeof(void *);
	else
		p = object + s->inuse;
	struct track *p = get_track(s, object, alloc);

	p += alloc;
	if (addr) {
		p->addr = addr;
		p->cpu = smp_processor_id();