From: Linus Torvalds Date: Wed, 24 Sep 2014 19:27:39 +0000 (-0700) Subject: fold swapping ->d_name.hash into switch_names() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a28ddb87cdddb0db57466ba7f59f831002f4340c;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git fold swapping ->d_name.hash into switch_names() and do it along with ->d_name.len there Signed-off-by: Linus Torvalds Signed-off-by: Al Viro --- 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) } } } - swap(dentry->d_name.len, target->d_name.len); + swap(dentry->d_name.hash_len, target->d_name.hash_len); } 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, /* Switch the names.. */ switch_names(dentry, target); - swap(dentry->d_name.hash, target->d_name.hash); /* ... and switch them in the tree */ if (IS_ROOT(dentry)) {