提交 88e4ccf2 编写于 作者: A Alexey Dobriyan 提交者: Pekka Enberg

slub: current is always valid

Acked-by: NChristoph Lameter <clameter@sgi.com>
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NPekka Enberg <penberg@cs.helsinki.fi>
上级 0937502a
...@@ -411,7 +411,7 @@ static void set_track(struct kmem_cache *s, void *object, ...@@ -411,7 +411,7 @@ static void set_track(struct kmem_cache *s, void *object,
if (addr) { if (addr) {
p->addr = addr; p->addr = addr;
p->cpu = smp_processor_id(); p->cpu = smp_processor_id();
p->pid = current ? current->pid : -1; p->pid = current->pid;
p->when = jiffies; p->when = jiffies;
} else } else
memset(p, 0, sizeof(struct track)); memset(p, 0, sizeof(struct track));
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册