Skip to content

Commit

Permalink
slub: use get_track()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Akinobu Mita authored and Pekka Enberg committed Mar 23, 2009
1 parent 6047a00 commit 1a00df4
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions mm/slub.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 1a00df4

Please sign in to comment.