From: Liang Zhen Date: Mon, 9 Dec 2013 12:39:35 +0000 (+0800) Subject: LU-4362 libcfs: wrong parameter to cfs_hash_keycpy X-Git-Tag: 2.5.53~53 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=e44670a0301d3edf13ebd1bc728ad4c797369de2 LU-4362 libcfs: wrong parameter to cfs_hash_keycpy 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 Change-Id: I44f73e4d2ffdeab5b021d49642598e939ebacee5 Reviewed-on: http://review.whamcloud.com/8509 Tested-by: Jenkins Reviewed-by: Bobi Jam Reviewed-by: Johann Lombardi Tested-by: Maloo --- diff --git a/libcfs/libcfs/hash.c b/libcfs/libcfs/hash.c index e112955..35c64a0 100644 --- a/libcfs/libcfs/hash.c +++ b/libcfs/libcfs/hash.c @@ -2019,7 +2019,7 @@ void cfs_hash_rehash_key(cfs_hash_t *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);