diff options
author | Sage Weil <sage@newdream.net> | 2009-11-06 19:44:05 -0500 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2009-11-06 19:44:05 -0500 |
commit | cfbbcd24a6bfd794295ee7ad76dfbff40ad6b934 (patch) | |
tree | 26a9640291ae3af1a9f1dd56cd8b3a2e3016b3ff /fs/ceph/ceph_fs.h | |
parent | c6cf726316abd613cfb7c325d950f3629f964ec6 (diff) |
ceph: use strong hash function for mapping objects to pgs
We were using the (weak) dcache hash function, but it was leaving lower
bits consecutive for consecutive (inode) objects. We really want to make
the object to pg mapping random and uniform, so use a proper hash function
here.
This is Robert Jenkin's public domain hash function (with some minor
cleanup):
http://burtleburtle.net/bob/hash/evahash.html
This is a protocol revision.
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'fs/ceph/ceph_fs.h')
-rw-r--r-- | fs/ceph/ceph_fs.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/ceph_fs.h b/fs/ceph/ceph_fs.h index ae523828c538..25fc537f4140 100644 --- a/fs/ceph/ceph_fs.h +++ b/fs/ceph/ceph_fs.h | |||
@@ -38,7 +38,7 @@ | |||
38 | #define CEPH_OSD_PROTOCOL 7 /* cluster internal */ | 38 | #define CEPH_OSD_PROTOCOL 7 /* cluster internal */ |
39 | #define CEPH_MDS_PROTOCOL 9 /* cluster internal */ | 39 | #define CEPH_MDS_PROTOCOL 9 /* cluster internal */ |
40 | #define CEPH_MON_PROTOCOL 5 /* cluster internal */ | 40 | #define CEPH_MON_PROTOCOL 5 /* cluster internal */ |
41 | #define CEPH_OSDC_PROTOCOL 21 /* server/client */ | 41 | #define CEPH_OSDC_PROTOCOL 22 /* server/client */ |
42 | #define CEPH_MDSC_PROTOCOL 29 /* server/client */ | 42 | #define CEPH_MDSC_PROTOCOL 29 /* server/client */ |
43 | #define CEPH_MONC_PROTOCOL 15 /* server/client */ | 43 | #define CEPH_MONC_PROTOCOL 15 /* server/client */ |
44 | 44 | ||