diff options
author | Ilya Dryomov <idryomov@gmail.com> | 2016-04-28 14:07:23 (GMT) |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2016-05-25 22:36:25 (GMT) |
commit | f81f16339a05775df600b2ff75a79be1864975c1 (patch) | |
tree | 5237e2eb11b48e2ee089591ea9b7695d080c68e6 /fs | |
parent | 6f3bfd45cd233eea0b07e3cabc0386b5de9321d2 (diff) | |
download | linux-f81f16339a05775df600b2ff75a79be1864975c1.tar.xz |
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 'fs')
-rw-r--r-- | fs/ceph/ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ceph/ioctl.c b/fs/ceph/ioctl.c index cca7fff..1831ad6 100644 --- a/fs/ceph/ioctl.c +++ b/fs/ceph/ioctl.c @@ -221,7 +221,7 @@ static long ceph_ioctl_get_dataloc(struct file *file, void __user *arg) return r; } - dl.osd = ceph_calc_pg_primary(osdc->osdmap, pgid); + dl.osd = ceph_pg_to_acting_primary(osdc->osdmap, &pgid); if (dl.osd >= 0) { struct ceph_entity_addr *a = ceph_osd_addr(osdc->osdmap, dl.osd); |