crush: fix tree node weight lookup
authorSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:36:49 +0000 (15:36 -0700)
committerSage Weil <sage@inktank.com>
Mon, 7 May 2012 22:39:35 +0000 (15:39 -0700)
commitf671d4cd9b36691ac4ef42cde44c1b7a84e13631
tree9f961d2a6dfdee4ffa3b4c8d2b7308dfda85e177
parentfc7c3ae5ab9246ad96aab4d0d57f67e9255cfb56
crush: fix tree node weight lookup

Fix the node weight lookup for tree buckets by using a correct accessor.

Reflects ceph.git commit d287ade5bcbdca82a3aef145b92924cf1e856733.

Reviewed-by: Alex Elder <elder@inktank.com>
Signed-off-by: Sage Weil <sage@inktank.com>
include/linux/crush/crush.h
net/ceph/crush/crush.c