]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crush: note that tree bucket size is tree size, not item count
authorSage Weil <sage@newdream.net>
Fri, 4 May 2012 21:51:15 +0000 (14:51 -0700)
committerSage Weil <sage@newdream.net>
Fri, 4 May 2012 21:51:15 +0000 (14:51 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
src/crush/crush.h

index 884b9289dbd89a36c55dd20b03348e04304055c4..9403696aadd651b0af001e5c4570466968643ea9 100644 (file)
@@ -135,7 +135,8 @@ struct crush_bucket_list {
 };
 
 struct crush_bucket_tree {
-       struct crush_bucket h;
+       struct crush_bucket h;  /* note: h.size is _tree_ size, not number of
+                                  actual items */
        __u8 num_nodes;
        __u32 *node_weights;
 };