From: Linus Torvalds Date: Wed, 24 Sep 2014 19:27:39 +0000 (-0700) Subject: fold swapping ->d_name.hash into switch_names() X-Git-Tag: v4.14-rc1~6782^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a28ddb87cdddb0db57466ba7f59f831002f4340c;p=platform%2Fkernel%2Flinux-rpi.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 92f7d76..7599d35 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)) {