Whamcloud - gitweb
LU-4974 lod: use common hash function for OST pool 43/10243/4
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 7 May 2014 05:42:15 +0000 (23:42 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Thu, 24 Jul 2014 03:09:08 +0000 (03:09 +0000)
commitba951cd63ccdbab34b55ce466a6630fd0381a276
tree9157988c6eaf80ea657d70e7d534ccdef99ff3bd
parent67894d6086f073ef0663c4e12ad8c812ef3a9686
LU-4974 lod: use common hash function for OST pool

Use the common djb2 hash function for OST pool lookup.  This is used
for string-based hashing in other parts of the code.  It doesn't make
sense to have a custom hash function just for OST pool lookup, since
there aren't expected to be a huge number of pools and there is no
expectation that one of these functions is better than the other.

Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I501a42bc169243204dfc847c0388240fc2500c1e
Reviewed-on: http://review.whamcloud.com/10243
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/lod/lod_pool.c