From: Akinobu Mita Date: Fri, 6 Mar 2009 15:36:21 +0000 (+0900) Subject: slub: use get_track() X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1a00df4a2cc001dd9f45890e690548c24b2fa2d9;p=linux-2.6-omap-h63xx.git slub: use get_track() Use get_track() in set_track() Signed-off-by: Akinobu Mita Cc: Christoph Lameter Cc: Pekka Enberg Signed-off-by: Pekka Enberg --- diff --git a/mm/slub.c b/mm/slub.c index f21e25ad453..e150b5c0424 100644 --- a/mm/slub.c +++ b/mm/slub.c @@ -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();