libceph: return primary from ceph_calc_pg_acting()
authorIlya Dryomov <ilya.dryomov@inktank.com>
Mon, 24 Mar 2014 15:12:48 +0000 (17:12 +0200)
committerSage Weil <sage@inktank.com>
Sat, 5 Apr 2014 04:08:14 +0000 (21:08 -0700)
commit8008ab1080c1768b02d232dcfd9e161cd47cc9f7
treea1f59c1f607a9e118a7047be73b7f93e4195d32e
parentac972230e20581b044f5ce66dcaf3c5af8d57444
libceph: return primary from ceph_calc_pg_acting()

In preparation for adding support for primary_temp, stop assuming
primaryness: add a primary out parameter to ceph_calc_pg_acting() and
change call sites accordingly.  Primary is now specified separately
from the order of osds in the set.

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