From: Al Viro Date: Sun, 6 Dec 2015 02:06:33 +0000 (-0500) Subject: restore_nameidata(): no need to clear now->stack X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e1a63bbc40c00d5198b1c1d133b139e962f5e872;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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) 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)