diff options
author | Ilya Dryomov <ilya.dryomov@inktank.com> | 2014-03-24 19:12:48 +0400 |
---|---|---|
committer | Sage Weil <sage@inktank.com> | 2014-04-05 08:08:14 +0400 |
commit | 8008ab1080c1768b02d232dcfd9e161cd47cc9f7 (patch) | |
tree | a1f59c1f607a9e118a7047be73b7f93e4195d32e /include/linux/ceph | |
parent | ac972230e20581b044f5ce66dcaf3c5af8d57444 (diff) | |
download | linux-8008ab1080c1768b02d232dcfd9e161cd47cc9f7.tar.xz |
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>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r-- | include/linux/ceph/osdmap.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h index b0c8f8490663..561ea896c657 100644 --- a/include/linux/ceph/osdmap.h +++ b/include/linux/ceph/osdmap.h @@ -212,7 +212,7 @@ extern int ceph_oloc_oid_to_pg(struct ceph_osdmap *osdmap, extern int ceph_calc_pg_acting(struct ceph_osdmap *osdmap, struct ceph_pg pgid, - int *osds); + int *osds, int *primary); extern int ceph_calc_pg_primary(struct ceph_osdmap *osdmap, struct ceph_pg pgid); |