From patchwork Tue Feb 28 06:07:06 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: 13154422 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 9B6A6C64EC7 for ; Tue, 28 Feb 2023 06:07:32 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229568AbjB1GHb (ORCPT ); Tue, 28 Feb 2023 01:07:31 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229529AbjB1GHa (ORCPT ); Tue, 28 Feb 2023 01:07:30 -0500 Received: from mx08-001d1705.pphosted.com (mx08-001d1705.pphosted.com [185.183.30.70]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A6E2423662 for ; Mon, 27 Feb 2023 22:07:29 -0800 (PST) Received: from pps.filterd (m0209318.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31S50XVd029420; Tue, 28 Feb 2023 06:07:12 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=from : to : cc : subject : date : message-id : mime-version : content-type : content-transfer-encoding; s=S1; bh=clG+WoaYavyBFLjc+J0nw2ppl+r8rsSHNbCNioiMC0c=; b=XiZhJsI97Qmmy89VbSH0enhTcoGHts7dqKJ4xg5OmjR4HyAcQgO3yCrX5v50bvtjs9y7 Yf0cZzfSZmGkobAGTldTD6Cv3MPWQkGfW7enqgNQUbeAzVEWQPCy1eM3VFzEIg+9Absp n8fgNriruMT9XS7XiruOjMIh5ooXFNbqrqM9GfQ4FBt+0QzgZy2rumKJraZDZ192j6d1 01z0PyImg5u6isaJKzXD1Ia66UA1NHieW+UIEZep5cOLyHnGlq/P9rLFsUmu83WggB6x twZashStE/pOprm6ynyzeLfQXVaPMyTmb3691Uarh6/+DoaSQxtq5mqAQrbafprUkI+W bg== Received: from apc01-psa-obe.outbound.protection.outlook.com (mail-psaapc01lp2040.outbound.protection.outlook.com [104.47.26.40]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 3nyb2gab01-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 28 Feb 2023 06:07:12 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kHgn0M+rL/B9dSIXnBkFO+O3MUOxPWRMcErA3gpkyFuy8ocXIhCdydTGtO21IR2thoG3qEH09OMHW5X73zCnK7wyR8nwtCMU8bpvSZXGWzcPua1brNBY7aUX/hYIj2PZAC5cTL2OKU7BOs7uwq2WKh2M6Pt6WAMHFkR/g9TtKz25NpQW0HxM+iz7+yeoKyw/B1W3P42IGm8E7OUr1YDDYI4aJI1urmaCOBaQtlQjKE1ULeezzDMc8CGWTbttTUU8BzWwgUWk8+j6ocROfEW27TjjEajHm7wAyjKte4W6U2wqlMImY5EgO8+RYxno6RMBzED9QmDMJ7j0R/iIj/Xmhw== 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=clG+WoaYavyBFLjc+J0nw2ppl+r8rsSHNbCNioiMC0c=; b=DZ41vGtUIKWG0MVvK54Ua2FdjodP9/abZshJTcyBJICz8XCZjYT9c6BrKH0ORF8e7U/kxK9VmibyyQkXc/5exCjORtiVlQ5mWOWJcGorC1r1njixjn4qHX/flk+Iihd02EslwXhzwgA1wZP1IdRAVDBWXZcxgakZBw2JOMv9oAMXHjHu0qB1N5b5aR7ByxGwpOEP+e9WGMlsCQJUTnQgcYlPefieOzkdj5XF+EtDtOKN+XRNeSFggkRFmBbFZNWmVYcfWekciWqFHOKVfoM+g9udnRkXzaCk7lJXHB1xLw/+24RUhkGGwixh2R5IMOr4n/JlZZB4rz8C3Y+gIFv4Rw== 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 KL1PR0401MB4227.apcprd04.prod.outlook.com (2603:1096:820:25::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6134.30; Tue, 28 Feb 2023 06:07:06 +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.6134.026; Tue, 28 Feb 2023 06:07:06 +0000 From: "Yuezhang.Mo@sony.com" To: "linkinjeon@kernel.org" , "sj1557.seo@samsung.com" CC: "linux-fsdevel@vger.kernel.org" , "Wataru.Aoyama@sony.com" , "Andy.Wu@sony.com" Subject: [PATCH v2 0/3] exfat: fix and refine exfat_alloc_cluster() Thread-Topic: [PATCH v2 0/3] exfat: fix and refine exfat_alloc_cluster() Thread-Index: AdlLOk+vq0bI/eoiRruPludYvyVdng== Date: Tue, 28 Feb 2023 06:07:06 +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_|KL1PR0401MB4227:EE_ x-ms-office365-filtering-correlation-id: 5cc5236d-19ab-4689-3c75-08db1952051b x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cs8eMSaQ9qr4Rng9U4JyrbJwWwCwfcczh+3vMgwaavfEw4Mv0doFHZAVnRCqWC759q/ciJH951BsnPNC/2JsQHcRigHfKhwANqpS/DPoZ0J9R0IoxFSahQtztg13GZvcY+E6A/K+phZ4Us5deNdGfbaeRuXzqj/VVQq5Ro7ZiESCE/ORxoVDsZtUSRXalh5oOwLJfkzVNrWB8RUKlxyweCbaEOUxuCW3sZMjIuyu18JXYQC0CArj5MSzPPzy1IILUGVduM71sea6QpRw3WjwXHXDBGmfPfaH3ref8hwqpuFbCgr1xlHcKiYMW1BFaWCPZTTXzXaAPrGMEezt9DN53mK3nnVwu5dNZhTvsaNX6YnZ1nXOAK8qBEDfedO0PV9RlUM7Zezachy7NPW7SQJU1axhXHhdtnncp1tj/z5Ix985JQn5YiSikPKs5mLLABWIgdzhiaZ1EJ6S8Dboy48gGN4uuRd1us9rD4zm3NxUI6PDx/zknvdlPboefANj23Yyzvyj41gGt8lgL1jsbI/MbPOTF1gWw8lvBTHpDzfjbaekDrGpN2iFHPcALqq1TnSVyrMLQxxkThNJT91sX2uqWRSu3B6kzGTztaUvPc3ixYlurPAzK/5yoSnmHjVx5ZcMsGsSJsDMJsd1/gBE4hG6JsNAxgLqptbMsadgaVDiII3FfvHVdb1fc1m8xd7+RRjnGYtQrqc5jE5gA8Q1+h9qMQ== 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)(346002)(376002)(366004)(136003)(39860400002)(396003)(451199018)(110136005)(83380400001)(33656002)(54906003)(316002)(478600001)(82960400001)(38070700005)(122000001)(7696005)(26005)(41300700001)(9686003)(186003)(71200400001)(6506007)(107886003)(5660300002)(4744005)(38100700002)(76116006)(52536014)(86362001)(8936002)(2906002)(66946007)(8676002)(66476007)(66446008)(66556008)(4326008)(55016003)(64756008);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?8UWxb+xC8eKMX00p5xBaB17W8bIT?= =?utf-8?q?se5KbBeaTXJmueYid7VVZnYORrXmSchmx1MemUQKG9THksV16Ap23KTVupB3qdYU9?= =?utf-8?q?KFGvn26eAter9WQmNbeszh6EX1X+lWxZEHVKnfNZ0wj4mEk2GV20fkHiA7a1BnQtN?= =?utf-8?q?3n9a1jEfn1z0n8PvZ36+FS0/jKC3Y+7Ly/sDW6qPrvxM797FaoihCNtybXSWdqB5U?= =?utf-8?q?puHuJzdAMvMyQrP+X3/qQgnggKPtqysGjFEAdMe1ncyRxhjTn1V83Acr/MtZyz6V1?= =?utf-8?q?GLiHy3pjbMfyUQ/hjavDBKTeYqE5y8c8aY3iEZouFzvn2r5FwgATnpFnp+pkq9MZH?= =?utf-8?q?jREHE3u+EgXCML+QKiytNCaM5Hjza8nxhSPU4vzdFRjIgUyUleLHeC3RNqWOFb1vG?= =?utf-8?q?SHpQjKpBRBz8Uh/cGG5nzqXsYXWqMXIO227XdAGDkYaxrMgQ6Ky5qhrnPGqQ79ol2?= =?utf-8?q?Mc6K2Rm4dIl81UBDa9nPZ+kfO4VbC8hHmTNjsrrdoSr1Gw+YgQNx+G0SnkU8l7Z3M?= =?utf-8?q?mVv1fZE3oKO65S2gpwVd+DjV+oNsrHX/Bidy2PpLgogr+PbfT0fo/huHYxsSIb66D?= =?utf-8?q?3vIM7vUaHGvQp/s749k0M3gi0vV2JcVNNuLFPoguOsgM7fJXU0rFhuDDr/j1XAVOE?= =?utf-8?q?If3/6X83exfGZxG04dshWYh43UzTBtGhbP+qlWl61Vo3XNC89mvElKsDNarj0nJV2?= =?utf-8?q?JL4xqCTBweOe61O7R1yuVn8g/VjkAZpGDvel3bXoXY7aWeaH8h9lJmVsEfjSngfYa?= =?utf-8?q?8HF8yaZiV6SRxOoUMrXn6TM79eZKHWxhcc5AxKs70wfLyciyTUcUWRukJcP6UHBgO?= =?utf-8?q?AKJGsxeFs3Va7eDVWRK2wpCSf9OeUKVfEpaZkCPYe6BMjwZ2ZbcMx/P1HFalPLS7z?= =?utf-8?q?stsRD6PUtmRdrwGll7/fCnkwZ1C8pT+F+/t3MlEgF0fTFT7Rqyx0n6FvzOU7W646R?= =?utf-8?q?A0+QcwKIiOIqxDQChjukdam6BzWzFHZxivlTgm9yu7bS6+G5okoULwB1pd+vAT08T?= =?utf-8?q?5mVYT1bn7cn/T0hiD4G2ZDzUDvljOVQ9apG4RSeGCiim93ChHbDXiorHBVs5+gwBX?= =?utf-8?q?QqhA4Bd0XNXVCj3iDpTIFtHJ9DicW1RMwTPuMMD5Iq8cmz//5ACrylLaWIY4NJ8op?= =?utf-8?q?Gtsd9gKgNOBDLteN2cDBWJVFJmDlnxFmryYUJtDRknZQkCAWvy+kQqJgFQad1vUxD?= =?utf-8?q?Zi5wfbAOGXs6sJK0pfkZhxVAM20jPHHsy4q5jUUr11G/yUfT3ekKOhD/oCDyxreyW?= =?utf-8?q?4IUS/CVexVFUs1fUDHo6yXde61kZgHypXnhV7Jg/HFXuQNYC1qQdpf7gkOQSctico?= =?utf-8?q?5EG68dyzuAtQQ8RmGydlfDLCvDkvsYsIR+VRXSZRpnLCMNZ8fDKWAJSM+m0f4gv3t?= =?utf-8?q?0dnYB5S5QnClxkxwWJgF7PJpk+4MWzYNzE8MXhSR4Ows0BACLBeJryTvptvNKlJPV?= =?utf-8?q?o9qOeiz1sRsjFkyvVqbEoNWGwU2C942feUetEkFTrztYJ11k/EjpF/BBTfmG9tJ8t?= =?utf-8?q?h0AqIG0JQ+as?= MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: QR58E8EfoV2iuhKQ45gf/XGK8XaqIYH/HnNltRQ0EWDo/cKsBBr9UTPI7TJxK0z9fj6WBj5/QTNXQihV/X2w9nTIpC/qtfJTi99oLUbNNOQ0gHh/yd6VElFfCaIHSztHoMEscSqjun+P+iJjZRjF9Zeh/pEJyuuAvA2barBXTsCEduxi/XfIYdEjcD5kzu9uU4NXb6y/q6nrkRIFjMycjgrgpw4mnK1BYKq403Z5/glXyCmpTsc/zPwZEFivcA9tOrzJlMjoina4/9L1DXMvuBoyPaLpSTzV0Alsji4mMybH1urQCKt77iMGpVrM1aGUoJoFnauzY6dcXvM+x6S91UKAZ04DxaA37OtAIm9Ia1CzJmpzbiMEIxBH2QHKeiCbAJ4OyJA8Ed2L6at/LZe/jtch26yQto79rk61nP67p6acj0xFsy/KB7hivjC93qNVktktm0EBPOHOLpShhwW7JIliNWaM3hoaKNE+74pthft1wBxsesTgJ7FR6+fnrTNsV4rAj1oPJQIW7sLzLsqkleOcKa7DUePCOwz+MKv4f0ptvarA2Z8IBt/tu6k0Y1CtqW1SHaFYqtrTqu0fzEmPVsMP8IHcCm5NYUQloodZZvvpb+d/WUn3OSXHP+5tPDO31tr+15Ry3hjFyHUear+vHLjeFspJzJUSpwJ5iEGGtXX7TNqBbRTmTMIuhVIPCX972oj8gAYJ/U4t8L5I954rTv6vI0s4S8Xs61bxsP0fubkcz1GJLYHTvk2DtMmlVgtlyVtJImXHV4XITiinqQjXksX0KUeem8FLiKHirFaV01MUiJDnpi3+P1kw9nDkdgtE+vEMq/Nef/Q54brzJ5akeg== 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: 5cc5236d-19ab-4689-3c75-08db1952051b X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Feb 2023 06:07:06.6571 (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: nO34ylV781j6hX6qjoovQotLY8xiol2DBtzahA06dVa7MS3c01PlkUctdFD6gnZNOxHDJpzQqQLeTrqpjOkCSQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: KL1PR0401MB4227 X-Proofpoint-ORIG-GUID: NPJA8Q6cEyAv7t7S3K1nBkzyr9zx78VE X-Proofpoint-GUID: NPJA8Q6cEyAv7t7S3K1nBkzyr9zx78VE X-Sony-Outbound-GUID: NPJA8Q6cEyAv7t7S3K1nBkzyr9zx78VE 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-28_02,2023-02-27_01,2023-02-09_01 Precedence: bulk List-ID: X-Mailing-List: linux-fsdevel@vger.kernel.org Changes for v2: [2/3] do not return error if hint_cluster invalid 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 | 31 +++++++++++-------------------- 1 file changed, 11 insertions(+), 20 deletions(-) Reviewed-by: Sungjong Seo