mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 02:00:54 +07:00
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: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
248fb5b955
commit
e1a63bbc40
@ -534,10 +534,8 @@ static void restore_nameidata(void)
|
||||
current->nameidata = old;
|
||||
if (old)
|
||||
old->total_link_count = now->total_link_count;
|
||||
if (now->stack != now->internal) {
|
||||
if (now->stack != now->internal)
|
||||
kfree(now->stack);
|
||||
now->stack = now->internal;
|
||||
}
|
||||
}
|
||||
|
||||
static int __nd_alloc_stack(struct nameidata *nd)
|
||||
|
Loading…
Reference in New Issue
Block a user