Use get_track() in set_track()
Signed-off-by: Akinobu Mita <[email protected]>
Cc: Christoph Lameter <[email protected]>
Cc: Pekka Enberg <[email protected]>
---
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();