From patchwork Tue Dec 13 02:36:46 2022 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: 13071665 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 80F02C4332F for ; Tue, 13 Dec 2022 02:38:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234176AbiLMCiU (ORCPT ); Mon, 12 Dec 2022 21:38:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46092 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234365AbiLMChp (ORCPT ); Mon, 12 Dec 2022 21:37:45 -0500 Received: from mx08-001d1705.pphosted.com (mx08-001d1705.pphosted.com [185.183.30.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F5411DA74; Mon, 12 Dec 2022 18:37:10 -0800 (PST) Received: from pps.filterd (m0209320.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2BCMhFAS024500; Tue, 13 Dec 2022 02:36:52 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=S1; bh=gsSgag+OzMW2awXOZeMJ+owPNW7EBzItiG79Zvj+2Z0=; b=HAj8uQDNy2TsbfPEj1+XdfU2WG2XWBSlvBvx8KyajzhQfm7MOzKannYBKsmSwjy6N/4M yf7wPQYKgiltfFRshnaCzXF6NhiJyafRJg1WdUwpIMJaeYpfwLh0KHDWRalxsxo/JETa GhzjChWGRdWVsBbSvWGMb6LUi0MRnBsipZVY9eHDsaEm92Aux8w9sfNvwciQOJ/SMeSo UZOLw96AVuAaSwUx9ojjueF5P18wcLsPif8IqA1OO3TQWF/EfqWAvcRaqKsR43oe+WMC UAYlGSGQrWurWFzSD3nP5PykjkkXyHmT2zdZ3JwNedCPj5x9OJ7WI+5dn+PFc4PFznhe uw== Received: from apc01-tyz-obe.outbound.protection.outlook.com (mail-tyzapc01lp2048.outbound.protection.outlook.com [104.47.110.48]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 3mcg0majhq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 13 Dec 2022 02:36:52 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=H/c4EepiVyzxzC2G0Ae3s+yJdz0ITgMI53pctbMtebOJpt8eOKfz787MC9ghlZFu/0/JPPUsv/oEfZVyjIZhg+REPUPKRcrmNLmkd1jHvNRtRnnTyM3znGvswXD3+GCoF0G3hH3PzK4PVE7josArMM0G1yHsItJd4MK13Ik4LVBE5aZXnDbAuS7Xv76LnpNm/SjJ2kiRfyomSXCEV0Oz0AWIxrgnMCen2F7Jyf9ZofY3iFCp5op1G4d4jNmhxYkSVK4mNTZHyn69SLeSPQOglZcWphMPXJhV4s4RKA4rwDFz0W/PDn2nimPf8HJSM6hcNnN9Kxy0Zqs/ZcFydzu59g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=gsSgag+OzMW2awXOZeMJ+owPNW7EBzItiG79Zvj+2Z0=; b=IgBonLpMY3PrN7BxRLrxc9Cmod1jf03L/5S4PhGAvjnqRabMlvlv9mvsq+mP7SE3Ye1v5Ejy6lhJ9PhETI4d4f20l7Hdz8+7e+UuKTOkVO8VFM85iHvauIvHSUDIMxKumKt5CesuoGbnPJp55kAQ0zkJVTn+O4UcJOqozFciKXMhp897xAWoRDbRd5PmM30gHHvOWA00zEugfvXvGsKndbUfoQBjTkt7bF6caFq1SSyGmBap8svcsdAiOvtIbHu6GYuhitpBu+cLsy4bcN0cl0+wFiTKWrhJitqUL/qyTnbqrXOTSEEpIkO8r35bA1y3TYntKDcRXe6MVVvtBRdSiw== 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 SEZPR04MB6948.apcprd04.prod.outlook.com (2603:1096:101:e1::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5924.10; Tue, 13 Dec 2022 02:36:46 +0000 Received: from PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::c689:d665:b3a2:d4de]) by PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::c689:d665:b3a2:d4de%7]) with mapi id 15.20.5924.009; Tue, 13 Dec 2022 02:36:46 +0000 From: "Yuezhang.Mo@sony.com" To: "sj1557.seo@samsung.com" , "linkinjeon@kernel.org" CC: "linux-fsdevel@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "Andy.Wu@sony.com" , "Wataru.Aoyama@sony.com" Subject: [PATCH v2 0/7] exfat: code optimizations Thread-Topic: [PATCH v2 0/7] exfat: code optimizations Thread-Index: AdkOmSf6KOfX0Y5hSJCy9jICcQZvCw== Date: Tue, 13 Dec 2022 02:36:46 +0000 Message-ID: Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PUZPR04MB6316:EE_|SEZPR04MB6948:EE_ x-ms-office365-filtering-correlation-id: b3387f82-6e08-4d19-cfd9-08dadcb2e157 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wkpQXwHswhlGhHmhQcUrJcINBJ8/IXqTWonthW6xaP/I+nta9il5M7wJMhOW7Iqbw4Xv786v3ypT5T+AtkW4DQ69CBDsdxN6hdaogwkKKtWRFbHlUQi/Y2rHEzkTn+1TiJ9LNTO8wHWZ/XOUsQEaXzkwwYVN3BvUDGMS3/W+HLCeEo/5UtR2S0wFQy9FKHLJGI6uTbWaQnoqgN1rXGJ5z8+4Z23VMcK8Bj0LoM+PtYBKwTivtLGQtxL6BcEmnb1Psz2cMI4ogTgp57/WSKGgbWNxvEQ17qq/7UHgCF7wYJGv3bkEp6ofuPwFHtkazL46RCC6aodVwftaIfmkNAGtQKX+s+92gKIyUGl+zTO/X1rXY/6Yw0Z34NiU49r066eHVvYK3FbUB3P9OwC/KHl+StJ08f71KN2W/72zLTGC5ekg6/oXY6jMwzTAsk1rV+BeBtPkRWbvu9ZZZ6L7ttpQ7SkGj397LO8erTIgZ/7HUphrb0DU9mDxTMUBLinX+pDff1xpFgsmOmlMwU2qm7sZbDZRuRFM6PlYia5YpdNFYF//QPPxVvnoEicCU6i5xgHZRv/xHlXBXAq2x7iAsa0dNJv/DnwcKGvFGWhj9hbr6OT24W+/RY22rz1YJ8OU0/JiHUl5K2u4UaHgJuVomx4RDUmYigJ0U2Ge90F/j2we1pFvZA0xUa8/oUokX2Y9qtcTukthM+uuqCbUxgyS3OTALg== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PUZPR04MB6316.apcprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(39860400002)(376002)(136003)(366004)(346002)(396003)(451199015)(86362001)(82960400001)(38070700005)(2906002)(8936002)(4326008)(8676002)(66946007)(66476007)(66446008)(64756008)(66556008)(4744005)(5660300002)(122000001)(38100700002)(33656002)(83380400001)(478600001)(110136005)(316002)(54906003)(71200400001)(76116006)(55016003)(52536014)(41300700001)(6506007)(7696005)(26005)(186003)(9686003)(107886003);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?y1NLsxWJbPnREbDLXFJ2LZcqirfK?= =?utf-8?q?6yBqcYIf5hlYIoi7L4vJiW/7Cm2zfaqorgRXyEOwVbzhFTxpRp17OhWQjZyV9qtV1?= =?utf-8?q?xcwLpNrDAae922XQOjWBpLdszOXXQVsRvFZ3bPgiRPVXNls0i+eWUO2fQ8KwKffiw?= =?utf-8?q?PQfdyGJ/1eiJ4ujOMSyNKhfRU4kVXF8qoPq9Mhvbcqdq61looGjt89aQ4Jfo8SGjN?= =?utf-8?q?g5bWP2NNb27cqqv2GAyPzl8YxpxKFnRpe8/DrEc0/3bwNLVor73wb19nDZzQmTtIa?= =?utf-8?q?xFP1P+BFjKMD1AQgK9P8nDXcbfUHJ5S/ISIJEpNjkagwtFldUHQfGO2q1AGDFfk5j?= =?utf-8?q?V6OsC2kCK7hnPVyfxICZeBuS6lqGC3cD2u1aFMrXRM0pou4Q9N9EYutlrrhHq0x9T?= =?utf-8?q?CduOUX/InhXq8PqsLh6KbQ5qi9ymsyyz/94g+xFNPh4y81RibGYbT0XcRnyN8fxTC?= =?utf-8?q?5LB80f5VZ79fCHFBtcvnfQ5r1JLOICMFUSXX+XTovL9Jat77ULLtPDW8oo2pJyjug?= =?utf-8?q?bhLMltWd5m2Icce5bPMYSP9dTTj1XVaUEMKakIth8vSdpVGjowEDv0E8V4M72rtdI?= =?utf-8?q?2SvOBwtPiBaDcWhRgKbmg2anRHFtYwf5DOSLZucKSzfCp6e81QUu4epUdj+pZ2fzQ?= =?utf-8?q?g7Fbgw5WoZ+VFfVIuiBDKcTTVQBT/n8Ai59mS56g3dZiuFU4X2K+5TwwhTGXHzwr8?= =?utf-8?q?xEE8GBbv9oDd2l4lxSkSAwcLghf8/2JqD1+4g+r5qswL0xRvBKywJNObvhieIeXqk?= =?utf-8?q?/DroJxdD8O+FowhuHY4/ryFyWtafQPmQQotbWKb8tlf2PZPCtftw8PZsPFvJmpjNM?= =?utf-8?q?N6VpNZrkrEozS+MGeg6rFGQtipFGCDU3Yja7PSuZp7cRa1AOQMu13r8bwgNeigCXN?= =?utf-8?q?bPp9NoR+lGWleGY1eGD7bA3yTfYnovJmMmTtXrSJsl0oWuuHLrNOzYKGqDlxFP6WV?= =?utf-8?q?70w9u0j5ximCuq58oO3szoEo323UARW7nyAE00/5e44WP27eDkKYK0JU80yLn2Q1i?= =?utf-8?q?UVLBTmCQNM6fUYlIFG8J/7pjVoq2hKevGw5J36uv0TvPBWt3Dn8vBxV7yQcILLWiL?= =?utf-8?q?HrSelOsqPO+b/bnBCgTHuNBldIO9sXCLIUQGCODceWTSy/Md4sog/Bjrd/c3xdBkE?= =?utf-8?q?uGeEs2ldLvaibwp6lSZB1h09bvibtBiazDAsZe9FxMRGdnBpHIJEbP5ciCefSroFM?= =?utf-8?q?Writ/+dGpRpnz/GzwweKx9zAvpETZaVt7BuZPmY6/lATdHk+/ASmri5N521QDVh+e?= =?utf-8?q?vvWAp1W9RnOoEJEuWHzTDhUNHQae2QMp5T7DeVWZs5tgMkvlVCU4ywkJTBTGz7rOm?= =?utf-8?q?v2yM7NacIz7mAqz9LmYNAD4uJvDT8EX65vTDdH1pK/84x20wWuK17gyrHxBAfOWtQ?= =?utf-8?q?kG8r26IwEzYC0RyitcNtBrsPJgjOqyh5dtxD5Pzr/TosHIYYMoF8VjYEPo1DyHwMg?= =?utf-8?q?BqnEBDv9CHPPtTbyGtga+jKsDi+ZGgF9+x1Z+LMfW5nsEFNmrqjl06SjZL8aFCkHe?= =?utf-8?q?d0Uu68DVIO0n?= MIME-Version: 1.0 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: b3387f82-6e08-4d19-cfd9-08dadcb2e157 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Dec 2022 02:36:46.8794 (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: NXTgMhRPVPWqaLn1PsRg0p+4T+jvEw+I8R1EVplmfM/R5RqI/NaxPnI/4ohDN5/PVWWqm3e/X/JPrRr4l7kAnQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEZPR04MB6948 X-Proofpoint-GUID: fjwaHg5RCRCJwXc4UFakKUXtjEFSXI3F X-Proofpoint-ORIG-GUID: fjwaHg5RCRCJwXc4UFakKUXtjEFSXI3F X-Sony-Outbound-GUID: fjwaHg5RCRCJwXc4UFakKUXtjEFSXI3F X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-12_02,2022-12-12_02,2022-06-22_01 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org This patchset is some minor code optimizations, no functional changes. Changes for v2: - [6/7] [7/7] Fix return value type of exfat_sector_to_cluster() Yuezhang Mo (7): exfat: remove call ilog2() from exfat_readdir() exfat: remove unneeded codes from __exfat_rename() exfat: remove unnecessary arguments from exfat_find_dir_entry() exfat: remove argument 'size' from exfat_truncate() exfat: remove i_size_write() from __exfat_truncate() exfat: fix overflow in sector and cluster conversion exfat: reuse exfat_find_location() to simplify exfat_get_dentry_set() fs/exfat/dir.c | 38 +++++++++++++++----------------------- fs/exfat/exfat_fs.h | 19 ++++++++++++------- fs/exfat/file.c | 12 +++++------- fs/exfat/inode.c | 4 ++-- fs/exfat/namei.c | 19 +++---------------- 5 files changed, 37 insertions(+), 55 deletions(-) Reviewed-by: Sungjong Seo