aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/dcache.c3
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
2418static void dentry_lock_for_move(struct dentry *dentry, struct dentry *target) 2418static 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)) {