Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 124995
b: refs/heads/master
c: dc711ca
h: refs/heads/master
i:
  124993: a7fe00c
  124991: b320c09
v: v3
  • Loading branch information
Al Viro committed Dec 31, 2008
1 parent 1f01972 commit c9a12ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7df5fa06de89a4ac311957e0cb9c1d87552b4325
refs/heads/master: dc711ca35f9d95a1eec02118e0c298b5e3068315
5 changes: 3 additions & 2 deletions trunk/fs/dcache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1616,8 +1616,11 @@ static void switch_names(struct dentry *dentry, struct dentry *target)
*/
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);
}

/*
Expand Down Expand Up @@ -1677,7 +1680,6 @@ static void d_move_locked(struct dentry * dentry, struct 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 */
Expand Down Expand Up @@ -1787,7 +1789,6 @@ static void __d_materialise_dentry(struct dentry *dentry, struct 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;
Expand Down

0 comments on commit c9a12ea

Please sign in to comment.