libceph: primary_affinity decode bits
authorIlya Dryomov <ilya.dryomov@inktank.com>
Fri, 21 Mar 2014 17:05:30 +0000 (19:05 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:08:04 +0000 (21:08 -0700)
commit63a6993f521b2629872e89c02a336fb3f18b092b
tree1d3dcc49a45bcd4beaeb132c0b3521de86bea76c
parent2cfa34f2d67a36e292cbe6e4c1e60d212b7ba4d1
libceph: primary_affinity decode bits

Add two helpers to decode primary_affinity (full map, vector<u32>) and
new_primary_affinity (inc map, map<u32, u32>) and switch to them.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
net/ceph/osdmap.c