From 85c734a5ffe2be48112ffcddca4807d200351d58 Mon Sep 17 00:00:00 2001 From: Liang Zhen Date: Mon, 9 Dec 2013 20:44:32 +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: Ib5b61a2f2bbd85848429ae5eae3702cb98d548d8 Reviewed-on: http://review.whamcloud.com/8510 Reviewed-by: Bobi Jam Reviewed-by: Johann Lombardi Tested-by: Jenkins 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 c6c349b..5cae169 100644 --- a/libcfs/libcfs/hash.c +++ b/libcfs/libcfs/hash.c @@ -2020,7 +2020,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