summaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov2014-03-24 16:12:48 +0100
committerSage Weil2014-04-05 06:08:14 +0200
commit8008ab1080c1768b02d232dcfd9e161cd47cc9f7 (patch)
treea1f59c1f607a9e118a7047be73b7f93e4195d32e /include/linux/ceph
parentlibceph: switch ceph_calc_pg_acting() to new helpers (diff)
downloadkernel-qcow2-linux-8008ab1080c1768b02d232dcfd9e161cd47cc9f7.tar.gz
kernel-qcow2-linux-8008ab1080c1768b02d232dcfd9e161cd47cc9f7.tar.xz
kernel-qcow2-linux-8008ab1080c1768b02d232dcfd9e161cd47cc9f7.zip
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.h2
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);