Skip to content

Commit 033268a

Browse files
committed
libceph: rename ceph_client_id() -> ceph_client_gid()
It's gid / global_id in other places. Signed-off-by: Ilya Dryomov <[email protected]> Reviewed-by: Mike Christie <[email protected]> Reviewed-by: Alex Elder <[email protected]>
1 parent 6305a3b commit 033268a

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

drivers/block/rbd.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3758,7 +3758,7 @@ static ssize_t rbd_client_id_show(struct device *dev,
37583758
struct rbd_device *rbd_dev = dev_to_rbd_dev(dev);
37593759

37603760
return sprintf(buf, "client%lld\n",
3761-
ceph_client_id(rbd_dev->rbd_client->client));
3761+
ceph_client_gid(rbd_dev->rbd_client->client));
37623762
}
37633763

37643764
static ssize_t rbd_pool_show(struct device *dev,

include/linux/ceph/libceph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ extern struct ceph_client *ceph_create_client(struct ceph_options *opt,
264264
void *private,
265265
u64 supported_features,
266266
u64 required_features);
267-
extern u64 ceph_client_id(struct ceph_client *client);
267+
u64 ceph_client_gid(struct ceph_client *client);
268268
extern void ceph_destroy_client(struct ceph_client *client);
269269
extern int __ceph_open_session(struct ceph_client *client,
270270
unsigned long started);

net/ceph/ceph_common.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,11 +566,11 @@ int ceph_print_client_options(struct seq_file *m, struct ceph_client *client)
566566
}
567567
EXPORT_SYMBOL(ceph_print_client_options);
568568

569-
u64 ceph_client_id(struct ceph_client *client)
569+
u64 ceph_client_gid(struct ceph_client *client)
570570
{
571571
return client->monc.auth->global_id;
572572
}
573-
EXPORT_SYMBOL(ceph_client_id);
573+
EXPORT_SYMBOL(ceph_client_gid);
574574

575575
/*
576576
* create a fresh client instance
@@ -685,7 +685,8 @@ int __ceph_open_session(struct ceph_client *client, unsigned long started)
685685
return client->auth_err;
686686
}
687687

688-
pr_info("client%llu fsid %pU\n", ceph_client_id(client), &client->fsid);
688+
pr_info("client%llu fsid %pU\n", ceph_client_gid(client),
689+
&client->fsid);
689690
ceph_debugfs_client_init(client);
690691

691692
return 0;

0 commit comments

Comments
 (0)