diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2014-09-24 15:27:39 -0400 |
|---|---|---|
| committer | Al Viro <viro@zeniv.linux.org.uk> | 2014-09-27 15:59:11 -0400 |
| commit | a28ddb87cdddb0db57466ba7f59f831002f4340c (patch) | |
| tree | 856486ca1e8fade63932ea1d14b82ae5a04d9af1 | |
| parent | 986c01942afb8eb6cc1708e721292db23b715d4e (diff) | |
fold swapping ->d_name.hash into switch_names()
and do it along with ->d_name.len there
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
| -rw-r--r-- | fs/dcache.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/dcache.c b/fs/dcache.c index 92f7d76db498..7599d35b4ae5 100644 --- a/fs/dcache.c +++ b/fs/dcache.c | |||
| @@ -2412,7 +2412,7 @@ static void switch_names(struct dentry *dentry, struct dentry *target) | |||
| 2412 | } | 2412 | } |
| 2413 | } | 2413 | } |
| 2414 | } | 2414 | } |
| 2415 | swap(dentry->d_name.len, target->d_name.len); | 2415 | swap(dentry->d_name.hash_len, target->d_name.hash_len); |
| 2416 | } | 2416 | } |
| 2417 | 2417 | ||
| 2418 | static void dentry_lock_for_move(struct dentry *dentry, struct dentry *target) | 2418 | static void dentry_lock_for_move(struct dentry *dentry, struct dentry *target) |
| @@ -2510,7 +2510,6 @@ static void __d_move(struct dentry *dentry, struct dentry *target, | |||
| 2510 | 2510 | ||
| 2511 | /* Switch the names.. */ | 2511 | /* Switch the names.. */ |
| 2512 | switch_names(dentry, target); | 2512 | switch_names(dentry, target); |
| 2513 | swap(dentry->d_name.hash, target->d_name.hash); | ||
| 2514 | 2513 | ||
| 2515 | /* ... and switch them in the tree */ | 2514 | /* ... and switch them in the tree */ |
| 2516 | if (IS_ROOT(dentry)) { | 2515 | if (IS_ROOT(dentry)) { |
