From e44670a0301d3edf13ebd1bc728ad4c797369de2 Mon Sep 17 00:00:00 2001 From: Liang Zhen Date: Mon, 9 Dec 2013 20:39:35 +0800 Subject: [PATCH] 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 --- libcfs/libcfs/hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 1.8.3.1