From patchwork Tue Feb 21 07:34:25 2023 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: 13147438 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 0E219C6379F for ; Tue, 21 Feb 2023 07:34:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233358AbjBUHew (ORCPT ); Tue, 21 Feb 2023 02:34:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229545AbjBUHev (ORCPT ); Tue, 21 Feb 2023 02:34:51 -0500 Received: from mx08-001d1705.pphosted.com (mx08-001d1705.pphosted.com [185.183.30.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4AF77A270 for ; Mon, 20 Feb 2023 23:34:50 -0800 (PST) Received: from pps.filterd (m0209323.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31L6qYoi009198; Tue, 21 Feb 2023 07:34:31 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=wWT75qH20mK+361T38BT3LOvxd/8xEdQzfPv3cp5z84=; b=EFNFFIkPqYuQZNT/fEneFKVYqfmoFrws8V0KIWTGYyeO/JxC8/eJOOU3N8memT3htAgp NxHtpyKNkuwsUGeu1MgZ0dM+xL8huujjxkhnTfYqTShj8YIhC3uIrpcs3vZ0SoehdFQD MCkmLfPsmmUz5/B10KnheDYFsFPUOGAsChvGNzF8oxe1AsdyBeO50ysR64OhYHJrF1cc /IazbeMDNGPpkKYtdGfcsYat1LOa+ywKIvoxsiPEZIyK9NJPREp6vAyKr+PRpFVxJQ/y qtbBIcyNly1WiqRjdHhnEqUqrCrv26jMactrko4jUjiOVxPoosI266GD1TEw5VyQUGjh GQ== 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 3ntp11tucq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 21 Feb 2023 07:34:31 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IHZIWLjxYLBXRUusESC0GANUg7TN9dnM5lgk8OkuCYA45DMmLOItLqhNZGuy9EiOIRij4yyHez9NfuukHyk/lIlEp5df9V81KY2obmnLQHkIHdUruRY10yKZaFTPNnHQv3sFJDeQlWJ7TWY8bIjQDreSj8Syc0gXfI0F88CjU3PFc/Ertk32N8GUqKW93FevBpsqJnTAyoBsC4ONYVROQxhOzVNV1I6Qm6P+bM2uYp6RbaxL4BCDQ/parE/zJeM6tM+MaCPHBKlHPRFBZ3MQaLKG5IeO8R9sRySpwUiJA+PaZfy5OUiFczuTjihZbuu5Ye4FQTTHPOmn+jyhm8zGmg== 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=wWT75qH20mK+361T38BT3LOvxd/8xEdQzfPv3cp5z84=; b=imfEhrE2fS1+8+dcHuKy4HnETe92SwGNgojyixXDFB1EWEEg2JKoOAQh/LP6hcYrqonzgdRxl3Rq45uIKB3OJd82+X6MmK2Kwh++NR4aKULlUmIWx+ESU3U0tRl22YnNcdcvT0/XuKeMuC+Cx6VGZ9j/nFGNNLXJcjqciW4UEVqys68S1s7Ddeer4JcnFT2yhZ5U2Zi38BzlneLn0IKrsaT0J1utg7m3+YMUEkECbrJ1cdKouHpnfk8OvGjknA4n4LjsDjgSI8D6vE0iGGdrexXs3i9bAnvT1kQhoN2H2Kmhd0x/XJRl1Y4Rbyhtjr1LbDwOZZQAOARH/h/b+Wggrg== 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 PSAPR04MB4165.apcprd04.prod.outlook.com (2603:1096:301:34::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6111.21; Tue, 21 Feb 2023 07:34:26 +0000 Received: from PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::779:3520:dde5:4941]) by PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::779:3520:dde5:4941%7]) with mapi id 15.20.6111.020; Tue, 21 Feb 2023 07:34:25 +0000 From: "Yuezhang.Mo@sony.com" To: "linkinjeon@kernel.org" , "sj1557.seo@samsung.com" CC: "linux-fsdevel@vger.kernel.org" , "Andy.Wu@sony.com" , "Wataru.Aoyama@sony.com" Subject: [PATCH 0/3] exfat: fix and refine exfat_alloc_cluster() Thread-Topic: [PATCH 0/3] exfat: fix and refine exfat_alloc_cluster() Thread-Index: AdlFxX7eR78/y043QeuSuWWz8nDOdw== Date: Tue, 21 Feb 2023 07:34:25 +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_|PSAPR04MB4165:EE_ x-ms-office365-filtering-correlation-id: 0028eb3a-074e-4002-8ad5-08db13de0ef2 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: HQHqZ11XSXPMzKqk0j230Mk2NUCm3ffiRT0f+f6rE4pHlX+35MXnfJmU40tyWlxsXVt9em6meVEUIxxzAZTMZQWb1EZNH06P70XnXcey4fxDti6tVsGSjJwtq11rylPP347yAdrr3SwJvhdKSB4kzyrTClEVe8ZjNUUo0g6VMq65JhG0yWjbNMKbYwBzS7EiwK4MVQJMP3sMYufw3PCpi+elb33O2ERUV6BXLY6+xBQLUwZNaNu4iOnOVj35yfG0HWvGi6yTeJJRQ3YOxVFHEHfUT1cNtBf3vVq3LAuNOzRU6+oPO5meu0pXZUFaVR7OUG0UGLoLAxrLpyepKy31WR6v+FhNNVynvLCFafuxxuK5QXGUQ2QPdsr5dabmdBGbcXbzQVeM/3u4Aab3HmpTc7HDhMaV/uFtwA9nmSp2sL2YHsk0qIOOcOQKh122RvFB7V/x1D7vSJJdUk1HqqHscn5U1zbBpfCn8nHXAcKWHJ+7V4zkawbQvrS3uQyDoG0218+6RkZnYvZoQ3iEapXDpcbEf8yiisIJY/0YdRuI9o80VZa4BN5N1O/+PYGAubrMWTIza/enIrM5hEEmC2PJGYSWjc78m8zeEC1ThNo2J2E054NMgvheh6MMNwy0iaGbaGiYZkx5wVbmoBftPH9uQklpywf8DU+WAKCLUuQyvvBQnm+S/PGCUTbcpAbI82RYFURJR3E1TZ02NdDE5Q/IqA== 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:(13230025)(4636009)(136003)(376002)(366004)(39860400002)(396003)(346002)(451199018)(82960400001)(122000001)(38100700002)(4744005)(83380400001)(86362001)(316002)(54906003)(8936002)(5660300002)(64756008)(66476007)(8676002)(4326008)(110136005)(55016003)(41300700001)(478600001)(38070700005)(107886003)(33656002)(7696005)(76116006)(66946007)(2906002)(71200400001)(66556008)(66446008)(52536014)(9686003)(186003)(6506007)(26005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?zjaOdlORbgaOlHngnwZNApDinNBR?= =?utf-8?q?86ZmYJsaCeR+JmEHt0JgYdgq9CZIjYECQF1n1pWAyBrWtP9CmOQVk2Hvm2J/GSlVG?= =?utf-8?q?Ae7tgqfH/wSMeJ0nTKyrM01UAXty4oB+EBN+i1wne200EBWx6Z0eDC/Eo88+/zrVB?= =?utf-8?q?vKcO5fnZIa+HnlCWVrqH3RwwWGY5Lz3mg9SdKpfvkD9ucj9Mi1jzErSaT9GIDPM7R?= =?utf-8?q?Bv21Hl76va2J8xJEk/ffoOJEe55+01QSIqlX4f2ChDU+v5Wp1umpnnVkabbNzSKcp?= =?utf-8?q?jNfzUpzKggr0qBZYfjHafXGSrFQGWfkT5EcKsBdnTbHHKjhILAvVnfrgl8GZPNy17?= =?utf-8?q?yxEMMRsHV2UIxD4YeW+/DBejINWQegf/KL/X4rmLGBPb32Kx9seIToRp7KUomVvsP?= =?utf-8?q?UzOubiDuyAYvZSp2ZiHkoTMsu14eLwwHNK+0Br2aHiH+L8V4w1VTEPjYzFHBEZ1C1?= =?utf-8?q?g0oDB3+tKYprvXYFuG1xKNUoVi+JBnsjHH9UNEEWaD1U+Gxnti8qUr6uJtc+OF99h?= =?utf-8?q?QHhOiSZTDy2aZlRL8FXqj6nRX9aH8EJ7FG7FltaRNxlccnIC/PpkigmOFxRCuvOj+?= =?utf-8?q?41ulPLhq9wpOPJ0fZ5nXYfnR+rmN4ZwUx7I7IWbZe/kk8h5tpTOYM1bypDD0CzP9x?= =?utf-8?q?5SKcDiwnCv6CGV1jZN+BQSmN2CWvKWgmob8oxOVT2P5jVFtP2WxU5NZ1HbIwgJ1sW?= =?utf-8?q?Te644s/h2JAovHIc2TRveEOYRKKeGsu/WTl9hdfOQXuIOzslXPhasNl0VF2/hI6za?= =?utf-8?q?Y0/gm8P0lz5m87DBgVrHCACuowHl60IUwTvee4yMw9oBGdBMRBX2fy8ukeLfUUimV?= =?utf-8?q?6LH97uVYKkpVS+xi4sTViYiOTHbQrDW0OD6pglcSzq06vBpvik1aoLgN0jvgW6rkE?= =?utf-8?q?zz25HzThU/0s7TXgG5lKI1/fOfMtwrKU9d3Gmh/FD9hPPK/XiNV8LhoMfPNd5LqMj?= =?utf-8?q?0U3cRZN8zucBOVbtmp8nk3LkU2+LbLd3Ytn1CAxJGstjOGZQ+F5nUFNkiQ2L320VR?= =?utf-8?q?Wdi0A/6EnCL8kyY8QTUnHBQiWNShRW0wBMSGPKMTPAWnCLinIYDQwTf3Na4lvCQRI?= =?utf-8?q?ClPMxFpLVZ9eybURyG2tKm6YAy1swVk9ottooW9KWLtL5kt7n9tIKsf9ia/W24yRH?= =?utf-8?q?8JOjqzQcpNbfFr1MOWiyFpkBhzEsv7N8EoxiQGvQERgvWmOjgFi7j4N1YeUo57G2e?= =?utf-8?q?KpQ5oIjDVqkWmsMQzGhtJIYjPJutRrANvvg2W0T9LPLOPXPL9NoEztQ5J6t38iDUU?= =?utf-8?q?XMplxxoBaoj+Zc+NYWhAFpk0TKDj+1MOKlmnfcaXWRofc+Fd1UWIuhdBrnwnCLHmP?= =?utf-8?q?AZQOBYmpZ1I7jyOZVctZeCNQrb1TIfKujeDRSeQdIa5XQKJXhcgTn9FASfCzVYNik?= =?utf-8?q?tK+oZAtev3fLrLq/WmM4MAeWkSD74sHEdjrLyCKAHcE5hFMEhr7w6hodTb/zLyrzp?= =?utf-8?q?sCg3o1u+SofxlNY8n3CCePPb3e1MnGfFp8ybAWhaTl7mt0PDh9awVTXa5dGVi4Hl9?= =?utf-8?q?JaFbbEECWyeY?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: YlkBcJZVLxYuDvJkydPLJTl8hxbvxGT1qxm0J1Ihqo/v7lasb6IUFa4cq1jnaQG5X7kltQqIQ+nrdaaVYscSKwVjh/iFTJX4dZ07q7BDyE02zoFarB5/vjPztdo78ry20y44BMgHV/fqVCj7e+T5kWVg0R2dOqwdZGYU7chsz0jcg6IXKXbpyOGaQwN/qzTG24AVbr/dt4U9377oUgQ3JelWl897nZ9fGFZzY/tbj7Nu0kj2FtpKF6+rVLbwAQ67iXEQ+DLalUtjWlPWAeP2yOVLQc8ZDrZ01M+TxOy4GQ/96aSmI0Wc6TKfQXqNRI52JIAPsBQhz+N/Vi3JWSuN0iCfkvhSyMui86jP6Jr8GM3SAe74xhUjzO5qrplmZH0Bp+SaqLE92u68ZhcVaK2DdM5217jj3aMcFZC0zaNEQCoZf43vC8XIiH4SCFvEOEAL2HCxQySx+YRMVvwdImnKALGSAoT6WI1NRwfLtxHutPBSr7bjufzj+2LxTkdthkF51RBT/GTZwbIdGX5YaU82+x7HBYZ2zZVZLd+HQA3+BnRU9/yf/BWJLzole1g7ucoFpT0/LHW95b/Ahnwa1vrHrgp2C/F+t+uihY8Cbew7yeVldVe2dh6cRXKujQKzwyr/KOB0AbY+uHPmx7mUEW4GNmHHT5rfwGz1Wjh6UKRoc0UMvyf5/2ooH6jnz/ZnEgyRNexIJkU9hfghsyLwNEf9qFcI0kb916Tl8Ay36s/J/foo7lfFXXZ5sZ/kjyipXoQ2MyR6hFz0XvGJ9kHi8IwTC+KjCixrpUAaqIflAEis1I3uCynhmc5L4QRsUUvcKUo//dphj3kPrBPflBFpr3LVPw== 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: 0028eb3a-074e-4002-8ad5-08db13de0ef2 X-MS-Exchange-CrossTenant-originalarrivaltime: 21 Feb 2023 07:34:25.6876 (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: Une7AK61agZOmz/ljINe2CIZCw6/oxWxlrp6R4uUjsom6WId+WG9PmmY1wKF1fnajiuByrUgwje1dFBl+O3ItQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR04MB4165 X-Proofpoint-GUID: O4xu5hNKN9IMJgybwO-6gS1-2xiXu0E4 X-Proofpoint-ORIG-GUID: O4xu5hNKN9IMJgybwO-6gS1-2xiXu0E4 X-Sony-Outbound-GUID: O4xu5hNKN9IMJgybwO-6gS1-2xiXu0E4 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-21_04,2023-02-20_02,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Yuezhang Mo (3): exfat: remove unneeded code from exfat_alloc_cluster() exfat: don't print error log in normal case exfat: fix the newly allocated clusters are not freed in error handling fs/exfat/fatent.c | 37 ++++++++++++++++--------------------- 1 file changed, 16 insertions(+), 21 deletions(-)