From patchwork Mon Nov 18 02:01:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yuezhang.Mo@sony.com" X-Patchwork-Id: 13878022 Received: from mx07-001d1705.pphosted.com (mx07-001d1705.pphosted.com [185.132.183.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 10E8533E7 for ; Mon, 18 Nov 2024 02:02:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=185.132.183.11 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731895342; cv=fail; b=He08Fq+AhDobZtuGiVGCBYg22mrog6+7mj1879VmYBXmQQ7z0YqzSSr4I6QT/VNO68h2E0qJymHWmug0KGJtpQ7mEbvSTeDRboN9wK4wLYxLcmJldk6Gk+lBBx0BUQCpDt8EJ6dCrFpHhJbwRx9pc3heTZS/Zuai6ns/TPL1/LM= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731895342; c=relaxed/simple; bh=rkrl6YX8xbN+xRG04wIpN0gi4doZWCF6YW6YuY41ie0=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=ltZmxM85G4brzAzZTK+VtPC44mBKdo0BIah3O8MPFsf0vTs5xbibsVJ/2FU5QR6yd1RoN4wCMbfK4LSUfgp48FlNYIjmr/lt+hifLYSzMtPn6G3NspaV1kZ/nRW8Vlqybfz8FVYaaSBmju9tOdGOQ+FVaFIs4HaW5TUWt7z1Qrg= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com; spf=pass smtp.mailfrom=sony.com; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b=DqX/+J30; arc=fail smtp.client-ip=185.132.183.11 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=sony.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=sony.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=sony.com header.i=@sony.com header.b="DqX/+J30" Received: from pps.filterd (m0209324.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4AI0xxNI007562; Mon, 18 Nov 2024 02:01:58 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=S1; bh=rkrl6YX8xbN+xRG04wIpN0gi4doZW CF6YW6YuY41ie0=; b=DqX/+J30byApADko54JkpwUhS0dZqADOdIcPr/9Yxuq9P 3hsd5X+0fTb8Pp3tjJT828cI9ZBnOgM/umo+zghAVMrCjJwCFdNXiQqPWQctxtY6 29oWyFXSVWZzRnyZTIkh6M7/PITBLLYbcAtNpnR6vk9q5pIuLgLsrxdl7j6nRogr VMqYKXuGnItscOiCmbU7RanlJHrbnvrQjHyOR8ii0+LdvfT0sMb/e2qtXGa8sV3v 4gMvh7LziPSAY9aAM8UkJd9eGGdjNaTTUtNX1HIlcotIyxoeiUKFv4v95vbgKCgZ dVWQazU6nWN2zVUCYODlq1/cOPHolw+7fgK2wrS3A== Received: from apc01-tyz-obe.outbound.protection.outlook.com (mail-tyzapc01lp2043.outbound.protection.outlook.com [104.47.110.43]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 42xmc3s3s0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Nov 2024 02:01:57 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=cw+E0GX6EX0lnnYpqDbRigDS0SyLb/QRJDhKH2ytwX1kVMQbuomGCD0tAxu3/v7yE7rMPVpYJxNyWDKshEvU2vQ5+JeZrI3+r2UM6lPVWTJXYADu/T+0WBxKdEV+XqzfLibrtqhATZf7hP6Ww2Ax51Mv3cv5qNyhOhQfeYaOTlxSgbvq69+EEPYZpV0Udm484eDQAcVfm/8acWXL/5jV6MLTt0qM1xfjj7ChdxbKfnzwdzyelaFd7moAzOcZRi3UPbnbmaEvUGfpbDr8xnJXvNs65T7nnmBQBsLOkxiJ51vC/zMxEu30Ah7VTC0c29k6jIDCeOWjWSc5QstZlCuDVg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=rkrl6YX8xbN+xRG04wIpN0gi4doZWCF6YW6YuY41ie0=; b=KNsl4UCY6t1MqOQHU/q9033pQSCdjs025lmorQC4H1YWyLpbM+i0x0VKtjb5VTwR9gPAaSDghMyThy+SrKMJg2go5SZIt11ukN97zYeF5phuTMWodn1Q4TuMrAKZcWUV6rqJtxY/3FXeYYktHjDDF6FsXSB/d3bWg+iT4YYJ6G45k9TnlO65pusqk0RwBCmFS9KY6/30upeAm5LS+GYmZ7nb7/vinHGeqxfYxFrstQcZQu0Nosu+SGQVBy8WOr4/TLFHe8Rp9J50/VvTy4QUO9JhKY1+Fbiqz2qH9gFo1HE57C1O343sGOmjXHeSer6VLIrZYeLLfh0Kr/0phTqAIg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=sony.com; dmarc=pass action=none header.from=sony.com; dkim=pass header.d=sony.com; arc=none Received: from PUZPR04MB6316.apcprd04.prod.outlook.com (2603:1096:301:fc::7) by TYZPR04MB6119.apcprd04.prod.outlook.com (2603:1096:400:258::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8158.22; Mon, 18 Nov 2024 02:01:52 +0000 Received: from PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::409e:64d3:cee0:7b06]) by PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::409e:64d3:cee0:7b06%4]) with mapi id 15.20.8158.013; Mon, 18 Nov 2024 02:01:51 +0000 From: "Yuezhang.Mo@sony.com" To: "linkinjeon@kernel.org" , "sj1557.seo@samsung.com" CC: "linux-fsdevel@vger.kernel.org" , "Wataru.Aoyama@sony.com" Subject: [PATCH v3 2/7] exfat: rename argument name for exfat_move_file and exfat_rename_file Thread-Topic: [PATCH v3 2/7] exfat: rename argument name for exfat_move_file and exfat_rename_file Thread-Index: Ads2/7nXFdJ14dydR3K7zKkd3b636wCXNCsA Date: Mon, 18 Nov 2024 02:01:51 +0000 Message-ID: Accept-Language: en-US, zh-CN Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PUZPR04MB6316:EE_|TYZPR04MB6119:EE_ x-ms-office365-filtering-correlation-id: d42d29f2-7bdb-408d-4b62-08dd0774f83d x-proofpoint-id: d8690225-876f-412f-87c6-a7cb45557a4c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?utf-8?q?1dYex9Hy3adoHC/aLiDe1Ov0D0FDbjm?= =?utf-8?q?2n4SxyHh13i+UoRhWH8Nitv0urksj1E/1J6K39gXKc8M7Wo5p/MwhRVu/VV25jpGv?= =?utf-8?q?Sum3up0zkmUAwhv2NfnPJzDKHcdaZNtlF5BzgNeohrVFzzYplVUsOLUV4ZdvPlTPE?= =?utf-8?q?rJplY0gDZgUC9mkomn+q9LV6uQStlylkJHVYk4nbXocqOYYQXQuNbkdA/P+c+j2u4?= =?utf-8?q?Jm2Wpts7FiH3ZrYBovtq1JkTCtZLYuEd+vKxOfI5LYqmOTa3uwQGXgA56EdkjhDHE?= =?utf-8?q?N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EaOdrQfMQtxfxaaRxV9HN3tM4pMDOvdfMxY+OlCfM4aNTko2JymuOOLqLhox7CoOE?= =?utf-8?q?8aJZAiHHvHQlNGAZrEpX384g+uvZ3YJpfoBsozKpVALuwlrAO/stSfZ0tQHwz9wd1?= =?utf-8?q?U9eWUCfvwMHzOeBzK3tXdLVTmCkbqkz1fRWZ4+geja3efGc8xuYIY12M=3D?= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:zh-cn;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZPR04MB6316.apcprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230040)(1800799024)(376014)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?OalAmvM7APf1eBLynceQ8ggG5OXc?= =?utf-8?q?xWRM/F6oXpXvm/4/pnrzT3r1jg1aXqhMLeDdPWS4WBao0vzaKPvESaQ1mdzHSv0XW?= =?utf-8?q?gWhmoqHvXx5Bu5WlspGpsxtSAFe+YC8d27ybYZNqCKkkxw/fsqJ1igYaJleji9ytp?= =?utf-8?q?pfy1eT90Zo9ThOqFBt2mZEDOh0SQoNKMh1FzSEqr6D+mZ2RjejLhrLn2RQUCQn68n?= =?utf-8?q?zpsZB7/zv4DP4xErPhia1D8EuAM+eLbEqStBVNI/KBjQAdhKeQS5voSemhHvdTUiP?= =?utf-8?q?wwOLhkCAp++ibn1K0kgYa/WiPrAYj7oxU7wkQBcCYMTvn7dTwF/wRdsOBacdg1GC6?= =?utf-8?q?lNl9QVx52ne1pFMKXFaGqo0DoGbgm6UEv0goiHabfy/kSszxieo4K9yMFxLoDiFgA?= =?utf-8?q?6zLDV1Me8MRWj2dBl02i1fUvDcrL3FRE2+kDYh56Ac6GxmhSs8V5ahfF755qJr6H9?= =?utf-8?q?h35REqeFNE+PMjmrTUCZcG6wzanHMfVLF2vbU2JBmZPjHbPXbe+G6Iwv7MGg51mF5?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?utf-8?q?+fEFqdERxirDaZoT5PXP+Mzai3oKlhxSrDuMIe7ad0div1vDFvdkh1l+Bf7pZQ6VM?= =?utf-8?q?8hFYF3iFmDexzqAW9XXSkRsSUCtqmBlJa7MhoPttX9vrJbIKuO6NqNWO14LfkXJsj?= =?utf-8?q?Eu2ueTF4TByL?= Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: PyFMMyOyn7BG8LZSpOGghKWWSBtu73KhnMrNed5Pq2Uebq258rtEiY+UlkMFlEpnOXxcyyaaa+y383QY+myv3WUwi2XBO5hPqKrkPRIIpUOHVsgJthqk/nNNDZ6KEPgE3fEXZuMdhdCV44cLH0Hk+Qvh7V0pEpFzZoPbU/c6r9aMFZzPMEdKtR2U1r5OfxmbIxpL42MLh+eZeFEsXYo/gj+1b5PxLSA4yVdWK4Ey3P+DaPw9rIoceX5YnCW1GRw5JTuj9RKkNCh8fVhabbc/JDJyI2a5RtT32pa0x01L9eKjmRfREe8p5XD/uaBJ54BFsbcxh/IToHSVsHUx5Z7fmizBQo4lYFXHPgwM21aJZdcZQdcqKB3I3arAZ3tEopx8ekZnPFBK1LKcW+LRYfQotX8WFgS2FIFNI0Y6n0LhXWLMBo4qDpFq2SQqvCpEa81Nfp/0aOiSNgulq2hR3ofU4eZ9fTzQY4+P4aPKRS51M/M/OUtCO2GN1oNCq2BEA+MlX2ZXQKpRFS9VwDwjlTNpeybLYCOieWB8rih10GPXZuGaxYb5JD2u8z/sOgPROFMQ6Ujvx5NL3sTS8DV+a4QbzM4Q/AitCZRybo64Nztn56CORtwArSn4OCDZ25vygm9+ X-OriginatorOrg: sony.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PUZPR04MB6316.apcprd04.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d42d29f2-7bdb-408d-4b62-08dd0774f83d X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Nov 2024 02:01:51.8053 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 66c65d8a-9158-4521-a2d8-664963db48e4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: RGF+xItwGHq3Npj8tx+q+i0Sq3ad1Eiy2FnqL8Bzfye89ojuzt2P2z30BFMvYsFeYpg8Xbq5gTvAaX4fxbhX1w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYZPR04MB6119 X-Proofpoint-GUID: 4haWbuVq3nTgNe0HXovKxn4rJzkhbDiY X-Proofpoint-ORIG-GUID: 4haWbuVq3nTgNe0HXovKxn4rJzkhbDiY X-Sony-Outbound-GUID: 4haWbuVq3nTgNe0HXovKxn4rJzkhbDiY X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-11-17_24,2024-11-14_01,2024-09-30_01 In this exfat implementation, the relationship between inode and ei is ei=EXFAT_I(inode). However, in the arguments of exfat_move_file() and exfat_rename_file(), argument 'inode' indicates the parent directory, but argument 'ei' indicates the target file to be renamed. They do not have the above relationship, which is not friendly to code readers. So this commit renames 'inode' to 'parent_inode', making the argument name match its role. Signed-off-by: Yuezhang Mo --- fs/exfat/namei.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index 6723396deae8..c61fddb9b23c 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -982,15 +982,15 @@ static int exfat_rmdir(struct inode *dir, struct dentry *dentry) return err; } -static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, +static int exfat_rename_file(struct inode *parent_inode, struct exfat_chain *p_dir, int oldentry, struct exfat_uni_name *p_uniname, struct exfat_inode_info *ei) { int ret, num_new_entries; struct exfat_dentry *epold, *epnew; - struct super_block *sb = inode->i_sb; + struct super_block *sb = parent_inode->i_sb; struct exfat_entry_set_cache old_es, new_es; - int sync = IS_DIRSYNC(inode); + int sync = IS_DIRSYNC(parent_inode); if (unlikely(exfat_forced_shutdown(sb))) return -EIO; @@ -1010,7 +1010,7 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, if (old_es.num_entries < num_new_entries) { int newentry; - newentry = exfat_find_empty_entry(inode, p_dir, num_new_entries, + newentry = exfat_find_empty_entry(parent_inode, p_dir, num_new_entries, &new_es); if (newentry < 0) { ret = newentry; /* -EIO or -ENOSPC */ @@ -1034,7 +1034,7 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, if (ret) goto put_old_es; - exfat_remove_entries(inode, &old_es, ES_IDX_FILE); + exfat_remove_entries(parent_inode, &old_es, ES_IDX_FILE); ei->dir = *p_dir; ei->entry = newentry; } else { @@ -1043,7 +1043,7 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, ei->attr |= EXFAT_ATTR_ARCHIVE; } - exfat_remove_entries(inode, &old_es, ES_IDX_FIRST_FILENAME + 1); + exfat_remove_entries(parent_inode, &old_es, ES_IDX_FIRST_FILENAME + 1); exfat_init_ext_entry(&old_es, num_new_entries, p_uniname); } return exfat_put_dentry_set(&old_es, sync); @@ -1053,13 +1053,13 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, return ret; } -static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir, +static int exfat_move_file(struct inode *parent_inode, struct exfat_chain *p_olddir, int oldentry, struct exfat_chain *p_newdir, struct exfat_uni_name *p_uniname, struct exfat_inode_info *ei) { int ret, newentry, num_new_entries; struct exfat_dentry *epmov, *epnew; - struct super_block *sb = inode->i_sb; + struct super_block *sb = parent_inode->i_sb; struct exfat_entry_set_cache mov_es, new_es; num_new_entries = exfat_calc_num_entries(p_uniname); @@ -1071,7 +1071,7 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir, if (ret) return -EIO; - newentry = exfat_find_empty_entry(inode, p_newdir, num_new_entries, + newentry = exfat_find_empty_entry(parent_inode, p_newdir, num_new_entries, &new_es); if (newentry < 0) { ret = newentry; /* -EIO or -ENOSPC */ @@ -1091,18 +1091,18 @@ static int exfat_move_file(struct inode *inode, struct exfat_chain *p_olddir, *epnew = *epmov; exfat_init_ext_entry(&new_es, num_new_entries, p_uniname); - exfat_remove_entries(inode, &mov_es, ES_IDX_FILE); + exfat_remove_entries(parent_inode, &mov_es, ES_IDX_FILE); exfat_chain_set(&ei->dir, p_newdir->dir, p_newdir->size, p_newdir->flags); ei->entry = newentry; - ret = exfat_put_dentry_set(&new_es, IS_DIRSYNC(inode)); + ret = exfat_put_dentry_set(&new_es, IS_DIRSYNC(parent_inode)); if (ret) goto put_mov_es; - return exfat_put_dentry_set(&mov_es, IS_DIRSYNC(inode)); + return exfat_put_dentry_set(&mov_es, IS_DIRSYNC(parent_inode)); put_mov_es: exfat_put_dentry_set(&mov_es, false);