linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] slub: use get_track()
@ 2009-03-06 15:36 Akinobu Mita
  2009-03-06 16:27 ` Christoph Lameter
  0 siblings, 1 reply; 2+ messages in thread
From: Akinobu Mita @ 2009-03-06 15:36 UTC (permalink / raw)
  To: linux-kernel; +Cc: Christoph Lameter, Pekka Enberg

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>
---
 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();

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] slub: use get_track()
  2009-03-06 15:36 [PATCH] slub: use get_track() Akinobu Mita
@ 2009-03-06 16:27 ` Christoph Lameter
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Lameter @ 2009-03-06 16:27 UTC (permalink / raw)
  To: Akinobu Mita; +Cc: linux-kernel, Pekka Enberg

Thanks.

Queued for the 2.6.30 merge.


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-06 16:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-06 15:36 [PATCH] slub: use get_track() Akinobu Mita
2009-03-06 16:27 ` Christoph Lameter

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).