commit
dc711ca35f9d95a1eec02118e0c298b5e3068315 upstream.
We want ->name.len to match the resulting name on *both*
source and target
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
*/
memcpy(dentry->d_iname, target->d_name.name,
target->d_name.len + 1);
*/
memcpy(dentry->d_iname, target->d_name.name,
target->d_name.len + 1);
+ dentry->d_name.len = target->d_name.len;
+ return;
+ do_switch(dentry->d_name.len, target->d_name.len);
/* Switch the names.. */
switch_names(dentry, target);
/* Switch the names.. */
switch_names(dentry, target);
- do_switch(dentry->d_name.len, target->d_name.len);
do_switch(dentry->d_name.hash, target->d_name.hash);
/* ... and switch the parents */
do_switch(dentry->d_name.hash, target->d_name.hash);
/* ... and switch the parents */
struct dentry *dparent, *aparent;
switch_names(dentry, anon);
struct dentry *dparent, *aparent;
switch_names(dentry, anon);
- do_switch(dentry->d_name.len, anon->d_name.len);
do_switch(dentry->d_name.hash, anon->d_name.hash);
dparent = dentry->d_parent;
do_switch(dentry->d_name.hash, anon->d_name.hash);
dparent = dentry->d_parent;