Whamcloud - gitweb
LU-16518 misc: use fixed hash code
[fs/lustre-release.git] / lustre / lov / lov_object.c
index db6a7f3..57ce475 100644 (file)
@@ -758,7 +758,7 @@ static int lov_init_composite(const struct lu_env *env, struct lov_device *dev,
         * so that different clients would use different mirrors for read. */
        mirror_count = 0;
        preference = -1;
-       seq = hash_long((unsigned long)lov, 8);
+       seq = cfs_hash_long((unsigned long)lov, 8);
        for (i = 0; i < comp->lo_mirror_count; i++) {
                unsigned int idx = (i + seq) % comp->lo_mirror_count;