libceph: primary_temp 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:00 +0000 (21:08 -0700)
commitd286de796aab9e306e674c6d23c4f3c1f55e394c
tree3f22d2b8cebb39f7a6a3495f4a4839084d47c820
parent9686f94c8cfc06e8afb7b2233ab8f1f6ac01957f
libceph: primary_temp decode bits

Add a common helper to decode both primary_temp (full map, map<pg_t,
u32>) and new_primary_temp (inc map, same) and switch to it.

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