libceph: rename ceph_client_id() -> ceph_client_gid()
authorIlya Dryomov <idryomov@gmail.com>
Fri, 12 Aug 2016 12:59:58 +0000 (14:59 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 24 Aug 2016 21:49:16 +0000 (23:49 +0200)
It's gid / global_id in other places.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Reviewed-by: Mike Christie <mchristi@redhat.com>
Reviewed-by: Alex Elder <elder@linaro.org>
drivers/block/rbd.c
include/linux/ceph/libceph.h
net/ceph/ceph_common.c

index 6c6519f6492a4198c78cae1eaad5e33e03efd2d9..e0585e9040f10fbdbff32840fc3d564e7c8814fa 100644 (file)
@@ -3758,7 +3758,7 @@ static ssize_t rbd_client_id_show(struct device *dev,
        struct rbd_device *rbd_dev = dev_to_rbd_dev(dev);
 
        return sprintf(buf, "client%lld\n",
-                       ceph_client_id(rbd_dev->rbd_client->client));
+                      ceph_client_gid(rbd_dev->rbd_client->client));
 }
 
 static ssize_t rbd_pool_show(struct device *dev,
index 83fc1fff7061d6cef1313639213482ac8eeaa5a0..b4cffff70e44134c25cb3e3d01b6fcf45c16f3d0 100644 (file)
@@ -264,7 +264,7 @@ extern struct ceph_client *ceph_create_client(struct ceph_options *opt,
                                              void *private,
                                              u64 supported_features,
                                              u64 required_features);
-extern u64 ceph_client_id(struct ceph_client *client);
+u64 ceph_client_gid(struct ceph_client *client);
 extern void ceph_destroy_client(struct ceph_client *client);
 extern int __ceph_open_session(struct ceph_client *client,
                               unsigned long started);
index bddfcf6f09c278afccb044183b5cc4c6e7449995..8a79217673086b5f0c1d4b57a38cb136fa5984c0 100644 (file)
@@ -566,11 +566,11 @@ int ceph_print_client_options(struct seq_file *m, struct ceph_client *client)
 }
 EXPORT_SYMBOL(ceph_print_client_options);
 
-u64 ceph_client_id(struct ceph_client *client)
+u64 ceph_client_gid(struct ceph_client *client)
 {
        return client->monc.auth->global_id;
 }
-EXPORT_SYMBOL(ceph_client_id);
+EXPORT_SYMBOL(ceph_client_gid);
 
 /*
  * create a fresh client instance
@@ -685,7 +685,8 @@ int __ceph_open_session(struct ceph_client *client, unsigned long started)
                        return client->auth_err;
        }
 
-       pr_info("client%llu fsid %pU\n", ceph_client_id(client), &client->fsid);
+       pr_info("client%llu fsid %pU\n", ceph_client_gid(client),
+               &client->fsid);
        ceph_debugfs_client_init(client);
 
        return 0;