]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
slub: use get_track()
authorAkinobu Mita <akinobu.mita@gmail.com>
Fri, 6 Mar 2009 15:36:21 +0000 (00:36 +0900)
committerPekka Enberg <penberg@cs.helsinki.fi>
Mon, 23 Mar 2009 07:43:52 +0000 (09:43 +0200)
Use get_track() in set_track()

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: Christoph Lameter <cl@linux-foundation.org>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
mm/slub.c

index f21e25ad453bee8b96aa5861b014bd9e89df2e2e..e150b5c0424f0672d6f59144b9b92e35b23ddb47 100644 (file)
--- 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();