[PATCH] slub: use get_track()

From: Akinobu Mita
Date: Fri Mar 06 2009 - 10:36:46 EST


Use get_track() in set_track()

Signed-off-by: Akinobu Mita <akinobu.mita@xxxxxxxxx>
Cc: Christoph Lameter <cl@xxxxxxxxxxxxxxxxxxxx>
Cc: Pekka Enberg <penberg@xxxxxxxxxxxxxx>
---
mm/slub.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)

Index: 2.6-poison/mm/slub.c
===================================================================
--- 2.6-poison.orig/mm/slub.c
+++ 2.6-poison/mm/slub.c
@@ -374,14 +374,8 @@ static struct track *get_track(struct km
static void set_track(struct kmem_cache *s, void *object,
enum track_item alloc, unsigned long addr)
{
- struct track *p;
+ struct track *p = get_track(s, object, alloc);

- if (s->offset)
- p = object + s->offset + sizeof(void *);
- else
- p = object + s->inuse;
-
- p += alloc;
if (addr) {
p->addr = addr;
p->cpu = smp_processor_id();
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/