aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLiang Zhen <[email protected]>2015-11-04 13:39:57 -0500
committerGreg Kroah-Hartman <[email protected]>2015-11-15 20:02:47 -0800
commitcf02dfef8a3de0e45e4907a374dbc53890cc9ee5 (patch)
treed70b48ba45e3a4ef55b04d813f4ce44b7ff62b38
parenta4be078d7818e8712cb5d78b95542877a6f75071 (diff)
staging: lustre: 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 <[email protected]> Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4362 Reviewed-on: http://review.whamcloud.com/8509 Reviewed-by: Bobi Jam <[email protected]> Reviewed-by: Johann Lombardi <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/lustre/lustre/libcfs/hash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/lustre/lustre/libcfs/hash.c b/drivers/staging/lustre/lustre/libcfs/hash.c
index 98c19b6cd174..8800d64780bf 100644
--- a/drivers/staging/lustre/lustre/libcfs/hash.c
+++ b/drivers/staging/lustre/lustre/libcfs/hash.c
@@ -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);