Commit e1a63bbc authored by Al Viro's avatar Al Viro

restore_nameidata(): no need to clear now->stack

microoptimization: in all callers *now is in the frame we are about to leave.
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 248fb5b9
...@@ -534,10 +534,8 @@ static void restore_nameidata(void) ...@@ -534,10 +534,8 @@ static void restore_nameidata(void)
current->nameidata = old; current->nameidata = old;
if (old) if (old)
old->total_link_count = now->total_link_count; old->total_link_count = now->total_link_count;
if (now->stack != now->internal) { if (now->stack != now->internal)
kfree(now->stack); kfree(now->stack);
now->stack = now->internal;
}
} }
static int __nd_alloc_stack(struct nameidata *nd) static int __nd_alloc_stack(struct nameidata *nd)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment