crush: assume weight_set != null imples weight_set_size > 0
authorIlya Dryomov <idryomov@gmail.com>
Mon, 24 Jul 2017 13:49:52 +0000 (15:49 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 1 Aug 2017 14:46:44 +0000 (16:46 +0200)
commitc7ed1a4bf4b446317eefa0f4916d94b1f6d3ada5
tree7ec262c80b210ea5deefcc682c5c5dec03f7650a
parente17e8969f5c59a10083af5e260bdad6026872203
crush: assume weight_set != null imples weight_set_size > 0

Reflects ceph.git commit 5e8fa3e06b68fae1582c9230a3a8d1abc6146286.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Sage Weil <sage@redhat.com>
net/ceph/crush/mapper.c
net/ceph/osdmap.c