Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-8403 obd: remove unused data parameter from obd_notify()
[fs/lustre-release.git]
/
lustre
/
include
/
lustre_lmv.h
diff --git
a/lustre/include/lustre_lmv.h
b/lustre/include/lustre_lmv.h
index
6c13fe7
..
f936973
100644
(file)
--- a/
lustre/include/lustre_lmv.h
+++ b/
lustre/include/lustre_lmv.h
@@
-20,7
+20,7
@@
* GPL HEADER END
*/
/*
* GPL HEADER END
*/
/*
- * Copyright (c) 2014, Intel Corporation.
+ * Copyright (c) 2014,
2016,
Intel Corporation.
*/
/*
* lustre/include/lustre_lmv.h
*/
/*
* lustre/include/lustre_lmv.h
@@
-130,13
+130,11
@@
lmv_hash_all_chars(unsigned int count, const char *name, int namelen)
static inline unsigned int
lmv_hash_fnv1a(unsigned int count, const char *name, int namelen)
{
static inline unsigned int
lmv_hash_fnv1a(unsigned int count, const char *name, int namelen)
{
- __u64
hash;
+ __u64 hash;
hash = lustre_hash_fnv_1a_64(name, namelen);
hash = lustre_hash_fnv_1a_64(name, namelen);
- hash = hash % count;
-
- return hash;
+ return do_div(hash, count);
}
static inline int lmv_name_to_stripe_index(__u32 lmv_hash_type,
}
static inline int lmv_name_to_stripe_index(__u32 lmv_hash_type,