ceph: make CRUSH hash function a bucket property
authorSage Weil <sage@newdream.net>
Sun, 8 Nov 2009 04:18:22 +0000 (20:18 -0800)
committerSage Weil <sage@newdream.net>
Sun, 8 Nov 2009 04:18:22 +0000 (20:18 -0800)
commitfb690390e305ea51e1883b105c7d3c52d7100ba5
treec099a71133225b1d22bba976e93dc6ab92a08986
parent1654dd0cf5ee1827322aca156af7d96d757201c7
ceph: make CRUSH hash function a bucket property

Make the integer hash function a property of the bucket it is used on.  This
allows us to gracefully add support for new hash functions without starting
from scatch.

Signed-off-by: Sage Weil <sage@newdream.net>
fs/ceph/crush/crush.h
fs/ceph/crush/hash.c
fs/ceph/crush/hash.h
fs/ceph/crush/mapper.c
fs/ceph/osdmap.c