aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/ceph
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2016-04-28 10:07:23 -0400
committerIlya Dryomov <idryomov@gmail.com>2016-05-25 18:36:25 -0400
commitf81f16339a05775df600b2ff75a79be1864975c1 (patch)
tree5237e2eb11b48e2ee089591ea9b7695d080c68e6 /include/linux/ceph
parent6f3bfd45cd233eea0b07e3cabc0386b5de9321d2 (diff)
libceph: rename ceph_calc_pg_primary()
Rename ceph_calc_pg_primary() to ceph_pg_to_acting_primary() to emphasise that it returns acting primary. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'include/linux/ceph')
-rw-r--r--include/linux/ceph/osdmap.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/ceph/osdmap.h b/include/linux/ceph/osdmap.h
index 942189d311e0..3fd978a1639b 100644
--- a/include/linux/ceph/osdmap.h
+++ b/include/linux/ceph/osdmap.h
@@ -236,8 +236,8 @@ void ceph_pg_to_up_acting_osds(struct ceph_osdmap *osdmap,
236 const struct ceph_pg *raw_pgid, 236 const struct ceph_pg *raw_pgid,
237 struct ceph_osds *up, 237 struct ceph_osds *up,
238 struct ceph_osds *acting); 238 struct ceph_osds *acting);
239extern int ceph_calc_pg_primary(struct ceph_osdmap *osdmap, 239int ceph_pg_to_acting_primary(struct ceph_osdmap *osdmap,
240 struct ceph_pg pgid); 240 const struct ceph_pg *raw_pgid);
241 241
242extern struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map, 242extern struct ceph_pg_pool_info *ceph_pg_pool_by_id(struct ceph_osdmap *map,
243 u64 id); 243 u64 id);