ceph: gracefully avoid empty crush buckets
authorSage Weil <sage@newdream.net>
Wed, 7 Oct 2009 17:59:34 +0000 (10:59 -0700)
committerSage Weil <sage@newdream.net>
Wed, 7 Oct 2009 17:59:34 +0000 (10:59 -0700)
commitb28813a61d6ffe05ad353a86965607bb7a7fd60f
treef416befcd63c5b93b227df4280afb18e00335c27
parentb195befd9acb514dd2afb722e63fdd880ed63217
ceph: gracefully avoid empty crush buckets

This avoids a divide by zero when the input and/or map are
malformed.

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