ceph: fix crush CHOOSE_LEAF when type is already a leaf
commita1a31e734241aefcb2b30fb0cc0376977b6d2ba8
authorSage Weil <sage@newdream.net>
Thu, 24 Jun 2010 19:58:14 +0000 (24 12:58 -0700)
committerSage Weil <sage@newdream.net>
Thu, 24 Jun 2010 19:58:14 +0000 (24 12:58 -0700)
tree3247b61cf5f1cc3efb212e0362493f98f326e4ff
parent55bda7aacd13f5fdfeaafc16934953171405c692
ceph: fix crush CHOOSE_LEAF when type is already a leaf

We may not recurse for CHOOSE_LEAF if we start with a leaf node.  When
that happens, the out2 vector needs to be filled in with the result.

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