diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-05 21:06:33 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-12-06 21:18:27 -0500 |
commit | e1a63bbc40c00d5198b1c1d133b139e962f5e872 (patch) | |
tree | 0c139b3fed7a93e2ee97e1c4d7dd40ae77a5c84d /fs/namei.c | |
parent | 248fb5b9557aa117f0b8c68b8cf2ce436e4d839d (diff) |
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>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/namei.c b/fs/namei.c index 0baf64b116bd..9e102aca3480 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -534,10 +534,8 @@ static void restore_nameidata(void) | |||
534 | current->nameidata = old; | 534 | current->nameidata = old; |
535 | if (old) | 535 | if (old) |
536 | old->total_link_count = now->total_link_count; | 536 | old->total_link_count = now->total_link_count; |
537 | if (now->stack != now->internal) { | 537 | if (now->stack != now->internal) |
538 | kfree(now->stack); | 538 | kfree(now->stack); |
539 | now->stack = now->internal; | ||
540 | } | ||
541 | } | 539 | } |
542 | 540 | ||
543 | static int __nd_alloc_stack(struct nameidata *nd) | 541 | static int __nd_alloc_stack(struct nameidata *nd) |