From patchwork Wed Feb 28 06:51:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chengguang Xu X-Patchwork-Id: 10246905 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C64EB60594 for ; Wed, 28 Feb 2018 06:52:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B77B1289E9 for ; Wed, 28 Feb 2018 06:52:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AC53B28C29; Wed, 28 Feb 2018 06:52:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 31CB628C21 for ; Wed, 28 Feb 2018 06:52:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751883AbeB1GwP (ORCPT ); Wed, 28 Feb 2018 01:52:15 -0500 Received: from mr11p00im-asmtp001.me.com ([17.110.69.252]:41079 "EHLO mr11p00im-asmtp001.me.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbeB1GwO (ORCPT ); Wed, 28 Feb 2018 01:52:14 -0500 Received: from process-dkim-sign-daemon.mr11p00im-asmtp001.me.com by mr11p00im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) id <0P4U00B00LN7BP00@mr11p00im-asmtp001.me.com> for ceph-devel@vger.kernel.org; Wed, 28 Feb 2018 06:51:55 +0000 (GMT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=04042017; t=1519800715; bh=g2glh2lLX0oZ35zwmwq7bI81n4qU2DGMAqa9e7FNp/Y=; h=From:To:Subject:Date:Message-id; b=lpY+8UHi0r/+trC2Usftyokzatp9VbjiE6PR3bD6GyC1gL0zFcj6mxytrimzxOKtl pPilkdLNWHD+inHJo0UYM3qBHs5GtEv2icGAApqIeovfcyPaVycRqq+39YMfN2cqlm JhGDEEDF43vTKAWtsSvqZ2xtPCgGZ/0BIZeeTH4LKEiHE+5LmcypaTfSvZyBxmwtC2 6VYpIQwWY7LdjVTKJr9ogszQtqLFpVSatcOkJmtGhTphFzpK+IVwhrDrz1wEZHxPJu VoZlwsmwQ+aLiPH0HqxflCDv7H6tgRY3LIqo2woItb6abSc3wazgP7lEvISdjGtKjQ ZyPJlw73DW8LA== Received: from icloud.com ([127.0.0.1]) by mr11p00im-asmtp001.me.com (Oracle Communications Messaging Server 8.0.1.2.20170607 64bit (built Jun 7 2017)) with ESMTPSA id <0P4U006Z2LQD5220@mr11p00im-asmtp001.me.com>; Wed, 28 Feb 2018 06:51:55 +0000 (GMT) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-02-28_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 clxscore=1015 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1802280081 From: Chengguang Xu To: zyan@redhat.com, idryomov@gmail.com Cc: ceph-devel@vger.kernel.org, Chengguang Xu Subject: [PATCH] ceph: change variable name to follow common rule Date: Wed, 28 Feb 2018 14:51:47 +0800 Message-id: <1519800707-149730-1-git-send-email-cgxu519@icloud.com> X-Mailer: git-send-email 1.8.3.1 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Variable name ci is mainly used for ceph_inode_info and variable name fi is mainly used for ceph_file_info. So change variable name to follow this rule in case of confusing. Signed-off-by: Chengguang Xu --- fs/ceph/addr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/ceph/addr.c b/fs/ceph/addr.c index b4336b4..e554285 100644 --- a/fs/ceph/addr.c +++ b/fs/ceph/addr.c @@ -438,7 +438,7 @@ static int ceph_readpages(struct file *file, struct address_space *mapping, { struct inode *inode = file_inode(file); struct ceph_fs_client *fsc = ceph_inode_to_client(inode); - struct ceph_file_info *ci = file->private_data; + struct ceph_file_info *fi = file->private_data; struct ceph_rw_context *rw_ctx; int rc = 0; int max = 0; @@ -452,7 +452,7 @@ static int ceph_readpages(struct file *file, struct address_space *mapping, if (rc == 0) goto out; - rw_ctx = ceph_find_rw_context(ci); + rw_ctx = ceph_find_rw_context(fi); max = fsc->mount_options->rsize >> PAGE_SHIFT; dout("readpages %p file %p ctx %p nr_pages %d max %d\n", inode, file, rw_ctx, nr_pages, max);