summaryrefslogtreecommitdiffstats
path: root/fs/ceph/addr.c
diff options
context:
space:
mode:
authorChengguang Xu <cgxu519@icloud.com>2018-02-28 06:43:47 -0500
committerIlya Dryomov <idryomov@gmail.com>2018-04-02 04:12:47 -0400
commit73737682e0598ae73bd4c481e478a0d75884aa8a (patch)
tree938552dc32bbe1d6bd639d40f10e919c7c7d4a2a /fs/ceph/addr.c
parent79cd674aed7363a043222af3c8f97d0ea0a078cf (diff)
ceph: change variable name to follow common rule
Variable name ci is mostly used for ceph_inode_info. Variable name fi is mostly used for ceph_file_info. Variable name cf is mostly used for ceph_cap_flush. Change variable name to follow above common rules in case of confusing. Signed-off-by: Chengguang Xu <cgxu519@icloud.com> Reviewed-by: "Yan, Zheng" <zyan@redhat.com> Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'fs/ceph/addr.c')
-rw-r--r--fs/ceph/addr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c
index c3557a9ea73d..4b3cf53d5641 100644
--- a/fs/ceph/addr.c
+++ b/fs/ceph/addr.c
@@ -439,7 +439,7 @@ static int ceph_readpages(struct file *file, struct address_space *mapping,
439{ 439{
440 struct inode *inode = file_inode(file); 440 struct inode *inode = file_inode(file);
441 struct ceph_fs_client *fsc = ceph_inode_to_client(inode); 441 struct ceph_fs_client *fsc = ceph_inode_to_client(inode);
442 struct ceph_file_info *ci = file->private_data; 442 struct ceph_file_info *fi = file->private_data;
443 struct ceph_rw_context *rw_ctx; 443 struct ceph_rw_context *rw_ctx;
444 int rc = 0; 444 int rc = 0;
445 int max = 0; 445 int max = 0;
@@ -453,7 +453,7 @@ static int ceph_readpages(struct file *file, struct address_space *mapping,
453 if (rc == 0) 453 if (rc == 0)
454 goto out; 454 goto out;
455 455
456 rw_ctx = ceph_find_rw_context(ci); 456 rw_ctx = ceph_find_rw_context(fi);
457 max = fsc->mount_options->rsize >> PAGE_SHIFT; 457 max = fsc->mount_options->rsize >> PAGE_SHIFT;
458 dout("readpages %p file %p ctx %p nr_pages %d max %d\n", 458 dout("readpages %p file %p ctx %p nr_pages %d max %d\n",
459 inode, file, rw_ctx, nr_pages, max); 459 inode, file, rw_ctx, nr_pages, max);