mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
slub: use get_track()
Use get_track() in set_track() Signed-off-by: Akinobu Mita <[email protected]> Cc: Christoph Lameter <[email protected]> Cc: Pekka Enberg <[email protected]> Signed-off-by: Pekka Enberg <[email protected]>
This commit is contained in:
parent
6047a007d0
commit
1a00df4a2c
1 changed files with 1 additions and 7 deletions
|
|
@ -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;
|
||||
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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue