aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/ceph_hash.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2009-12-01 17:12:07 -0500
committerSage Weil <sage@newdream.net>2009-12-03 17:59:44 -0500
commit50b885b96c903e420a1eac54dd27626244704a06 (patch)
tree35038a32cbb963c784685e8b73d6ecd1a7cde3c9 /fs/ceph/ceph_hash.c
parent34b43a56b9b103a7a820032177131532d9dbdbe8 (diff)
ceph: whitespace cleanup
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/ceph_hash.c')
-rw-r--r--fs/ceph/ceph_hash.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ceph/ceph_hash.c b/fs/ceph/ceph_hash.c
index 1c44e43fe89e..bd570015d147 100644
--- a/fs/ceph/ceph_hash.c
+++ b/fs/ceph/ceph_hash.c
@@ -82,14 +82,14 @@ unsigned ceph_str_hash_rjenkins(const char *str, unsigned length)
82 */ 82 */
83unsigned ceph_str_hash_linux(const char *str, unsigned length) 83unsigned ceph_str_hash_linux(const char *str, unsigned length)
84{ 84{
85 unsigned long hash = 0; 85 unsigned long hash = 0;
86 unsigned char c; 86 unsigned char c;
87 87
88 while (length--) { 88 while (length--) {
89 c = *str++; 89 c = *str++;
90 hash = (hash + (c << 4) + (c >> 4)) * 11; 90 hash = (hash + (c << 4) + (c >> 4)) * 11;
91 } 91 }
92 return hash; 92 return hash;
93} 93}
94 94
95 95
@@ -105,7 +105,7 @@ unsigned ceph_str_hash(int type, const char *s, unsigned len)
105 } 105 }
106} 106}
107 107
108const char *ceph_str_hash_name(int type) 108const char *ceph_str_hash_name(int type)
109{ 109{
110 switch (type) { 110 switch (type) {
111 case CEPH_STR_HASH_LINUX: 111 case CEPH_STR_HASH_LINUX: