staging: lustre: wrong parameter to cfs_hash_keycpy
authorLiang Zhen <liang.zhen@intel.com>
Wed, 4 Nov 2015 18:39:57 +0000 (13:39 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
cfs_hash_rehash_key() passed wrong parameter to cfs_hash_keycpy,
hnode should be the second parameter not the third one.

Signed-off-by: Liang Zhen <liang.zhen@intel.com>
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4362
Reviewed-on: http://review.whamcloud.com/8509
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/libcfs/hash.c

index 98c19b6cd174455dd8e20d541b24e4f7c35de5f1..8800d64780bfc786217836e756e7ee044e6531ef 100644 (file)
@@ -2005,7 +2005,7 @@ void cfs_hash_rehash_key(struct cfs_hash *hs, const void *old_key,
        }
        /* overwrite key inside locks, otherwise may screw up with
         * other operations, i.e: rehash */
-       cfs_hash_keycpy(hs, new_key, hnode);
+       cfs_hash_keycpy(hs, hnode, new_key);
 
        cfs_hash_multi_bd_unlock(hs, bds, 3, 1);
        cfs_hash_unlock(hs, 0);