Message ID | PUZPR04MB6316DBC3129059AA1EA07899812D2@PUZPR04MB6316.apcprd04.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Received: from mx08-001d1705.pphosted.com (mx08-001d1705.pphosted.com [185.183.30.70]) (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 734F321342 for <linux-fsdevel@vger.kernel.org>; Mon, 18 Mar 2024 05:22:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=185.183.30.70 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710739337; cv=fail; b=Ptk079yERGoVnGN5l8Fce8pGCa/iJWpCwgljuk29VfHRlHbolOw0eezDaZJtddaXMcscKZA16vCXucoSc1QMFTAEc9XtsqKZqMKZXPo34joN9vHFImzKq0tnCB4k4NDvOHYjPWNeS61fIlr0HRCQNw2z1Saf3HV+GD3vEYM0/PQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710739337; c=relaxed/simple; bh=nBeDhgFFZs3r4BPA/Amce/1ugnuxpfBM4oUoncKMbPM=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=rC+txWvmXGoMpbck1dUkYgwW/6hA/VAtnz+azI/9ioC9euKy8eeIbXm00M2w82qrk5o6fetDuxZQ61jstmcAuEoS9hfyxgu5rOupYPCCj7+mWWQO7gechHqryH69LeHlD44XmVXkwxY8znrTFMHyLcLyBXneLAG2OBV+oSsU+qI= 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=VzxYMJM6; arc=fail smtp.client-ip=185.183.30.70 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="VzxYMJM6" Received: from pps.filterd (m0209322.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 42I4i96p027621; Mon, 18 Mar 2024 05:22:06 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=nBeDhgFFZs3r4BPA/Amce/1ugnuxpfBM4oUoncKMbPM=; b=VzxYMJM6QHZL0kLsScZ0e5iECelKh6pYUnWr7ZNVrJ9UnjSMk+jXH5Ln5+IjyBaAqooE N76pc6AlrJmeqngKvCbDY9e1gnU72dDbMIYGC5oJzNHi9N02LERkyuJgKSrxSo0Nj0Ej zf9ynq0DK3ToqjqIekRVANezBDlV25SPw3TmZ+GoK64s+S2C7UYFdiA4gB5m/YDJZJ1t nmpS1aRXDAglLsOsQNMYlugGfdVmUTzAP41zLE6uIuxDkpk1cbubYG3jNqBnIufAKVPF hG2iAb87jz1WKzga6+qLiv9ZjerXzkb27KEujkfE3u8EbP9GUOcj/DKeJh4H2ibGd0w5 Rw== Received: from apc01-psa-obe.outbound.protection.outlook.com (mail-psaapc01lp2041.outbound.protection.outlook.com [104.47.26.41]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 3ww2769h1q-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 18 Mar 2024 05:22:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L21p7taaqmI9wlQOhFb026MbkytHzCtwzW14Q2ihqBft23QTKJvp9DuAYJP9DspGut5aLx3/LbS7i0Vx3kywA+cgQH9JM6xyj5AuFHSWFdjeDUaPdjMHTkPw9uhXTx9+djmKOLCjCftr7BlDbim9EoxirYM3bjNBe6oGNtcoVsiZCyE+Sn4TaQm86CLlY6MK9o5j0mBGKsWn2xWjH4owUgxN8VgpKWl+zgzZ+aMGmfRSqCvqqRbTmIOpZwdifcuPKQrFYiUvUZDQin0drg5e5tbbj2y4SEF+BVafcLJBFh1i9eP/mw6djsUoQNwPvcidhTdI2O8ehBV2LsY5pJXHkw== 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=nBeDhgFFZs3r4BPA/Amce/1ugnuxpfBM4oUoncKMbPM=; b=m5JFScLYDzpP82ISMQCkd58n7Gu/wYVd2eqI4UQ0dzRtrE3Z5eUMLVHyaAHLFasls6GrX631udb8KsHSaWgzlSOmHybwWOD1L7Ny8Yd0f5rufaaYcB6qlIZsWrTebzHSKBM6nd5vxXMARJAeAB8jKcy/NrSbW7x99BZP63E73Zf+IVz9hGpUC+PMTEE0lTSuS6GXXlzHiYbDspZ1NFVmFVwt+hAmhtoi//0DSfUMyYy6Zzp817oBEvfgqqgY+9bb8bCJ1eDw/WKM5G2gU867K5jHU0UyxnUioOwDQ00sYWGhZEbSFgGdf9RSvPOgsjQaXCWo0WhUEekC+wBMoZsYyg== 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 SI2PR04MB5895.apcprd04.prod.outlook.com (2603:1096:4:1eb::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7386.26; Mon, 18 Mar 2024 05:21:59 +0000 Received: from PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::7414:91e1:bb61:1c8d]) by PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::7414:91e1:bb61:1c8d%7]) with mapi id 15.20.7386.022; Mon, 18 Mar 2024 05:21:59 +0000 From: "Yuezhang.Mo@sony.com" <Yuezhang.Mo@sony.com> To: "linkinjeon@kernel.org" <linkinjeon@kernel.org>, "sj1557.seo@samsung.com" <sj1557.seo@samsung.com> CC: "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>, "Andy.Wu@sony.com" <Andy.Wu@sony.com>, "Wataru.Aoyama@sony.com" <Wataru.Aoyama@sony.com> Subject: [PATCH v4 05/10] exfat: move free cluster out of exfat_init_ext_entry() Thread-Topic: [PATCH v4 05/10] exfat: move free cluster out of exfat_init_ext_entry() Thread-Index: Adk2K2RlKDzYiUB2RIeEGX1cod9h91CxyGog Date: Mon, 18 Mar 2024 05:21:59 +0000 Message-ID: <PUZPR04MB6316DBC3129059AA1EA07899812D2@PUZPR04MB6316.apcprd04.prod.outlook.com> 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_|SI2PR04MB5895:EE_ x-ms-office365-filtering-correlation-id: 027461b9-6e2a-498f-4263-08dc470b563f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: w6A6j+DXkTvkw/ZaGGyL7rXo9N6x/IF6ujHGRV9lNZyCi8+CKBln/Vgskaod+LlOl7UeKGDmvC5iv5OATp4ANBx2YKOQfgiRC6Q+9EAozMd3txvGf4ZyFErMqNcadlB8Q7PfrCNFc0midyruU3FQBTX0VBBM/T7e36xl/iEosrqKJLBhLvjkWMBC1loVVifUJqeyde6iKySLd3Qg1CSCRoIUnbzjKXwWBsZ2+bIv5WdmtqXOJFqFSadRht8B4lQr4RiPzyhM443CXq71eDCgu2ntGukhaMOLCHvJBT6YuZetmiSc8U9rPC1tiPpwoBhKoA+/qgg0tPfLJV4+XNrfcLGLCVK6OLjvJn5/IbNwNYDvzZxqIBpRt81XVcKB04C0D+Vib82alzM5PcuvIyoP3uIzMG1tgw7zUNEQFUJcegSjD1Djd5PhJCEXw8Qa/2wu2bD1YXDe6dpnu6U0mlDSb6bMnFB7ZRBy8bwGOfVqicO98HAei27TLUo0aPsiEOxm7coPNiLqBPBuO0IbO0MdrDi8eu9FFq1JWyoSKUZQHa2Q1wxr3kYb9oROxm2o6K7Z2+V+i7yn34vvs7Dpjf1UUeBVCflFDkHkoZe64kt/AxwvTbdSk4j0bDORn6KXQErUr4YZXTSfGJVE5XdjAw/cr2g1NjaGfVJM0idPMFnHFzg/IremSNbfMZKggFCcQ8hBC5ux0FzqDJqpzdoasP9MJsK3G96ZBSmo7JPgfbjfHbw= 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:(13230031)(376005)(366007)(1800799015)(38070700009);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?fGe2mnSFxfOzUyZ3oRb4zk4XOXbD?= =?utf-8?q?pNEHbqhNFPTGZzSh83N9bTBoUMezfwBPk8fMGy9xTI6k44jZJFBVJnbevIdUz+0FR?= =?utf-8?q?rd823GKyia5nrgNBwjUM9Csel5b6WW6fPkAWnJNAn8WNA7sIMYT3oRcHGwWOMFph7?= =?utf-8?q?7UQL9dbe0DGBx9HbsKXRC80teAiLPzfD62jxtFfuh1uOlcru0W+NmgEuQm4uG3Kka?= =?utf-8?q?DiPgWgfq9sEOmenbUHn8MtY9ZLO5XKN6oSgEcurennoPsI5CJF6SG9KcCGTaW2ZBl?= =?utf-8?q?mK7oSNpEUGK9axqPxQVB9I+5nQZhxOzK/aqNlz9zMtV7ypI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vRO4Ke?= =?utf-8?q?ZovSOpuDqUQBZGp+KyRIlU0U5DtfSfhO5UADsxowJGzUwBytO/xqkIgEWLTAWh9nj?= =?utf-8?q?Ui5KXj6lhzz7MvFnnPVM03FYMdpiCVBGAUCEnPb2kUggys8zIR8UY+UwnCRqi1qCC?= =?utf-8?q?h2TzeMFKX4+DGCOpJ22NMSuhQLBBRzaV1F3YppTZFWWpMgYPP7q/Zpe/gj537xDo/?= =?utf-8?q?7fb6UyoWu9Adg7mQ5AZmm7wmsLpqvX2QnC/xHZ2jZrzN1WhSfZKxk1Icuuf4IYLbs?= =?utf-8?q?X5GUKBZwkaHJT4yd8wJFp69LPqc0x5SYDVwfI4o57w7omvAaSxJokJwa2amw+/Gk7?= =?utf-8?q?yW1wmrzu1mec?= Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: <linux-fsdevel.vger.kernel.org> List-Subscribe: <mailto:linux-fsdevel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-fsdevel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: IyR6MwO47sY+wlLXolcIYdBx20o+sYTdnlwFylwBjhv53OEPOi6CjemFXLwjIpAwZTI4IvV+QWYWQoD+3JBrmuP0Yb4cyLCpNdLch85//F8dNpKo5VaIpjZ2Y13Yxz7yL2VFYcglL68SejK5cPIVsRJxmtgyJVE7nyCo/mCfJisNCR/Haov8RL+izQsXRqZJW/EXh6EWbEKrAIVr+cep0QvTrFU/PNi9U3qKAzrytUhjTTGqdXnaI2VvkM4yAP9iZFQ+eAnu1HKgILc9/i9qKLzvjPvVhzejFar6uNFifca7rjolFCpppDEy3Wx+wIJRPcm80LkY1eSGHGCTAuY54TQDA2348Bd9s2dSxTLHEpxQ7YfO84IQRqQUKbsq6TL+KD87xwlNAWAdKRj6LuBtTqXtp/0CMdgj3LUq6u5BKm5yB9eaL2CGbILCs658zccdI82pJmhLsa1D9msvnNJ2U60yLz3S1GiWIXFe/AHt0gWv5L7PsTTgcsqFIsfdUFtvsG1Wb4qBrkhuFT0eEbeWvvaT0WFYY0jMifPZkFzO64HwjRotssrT222q885UBlIlkgSas+zGE7LfGjDsDeR3QlpI+rsxZtKAd0Q/bUdQ+vx1GaXqu0ijaYdqfWddy5kg 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: 027461b9-6e2a-498f-4263-08dc470b563f X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2024 05:21:59.6764 (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: K7QG/vsUiwoZdZDxX5T8XrjIqNj86ObJBqZEGO/ZQVLDMIecVhtSMLFRiraD5JAylKn6/45KVL5bWuWFzlSFHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SI2PR04MB5895 X-Proofpoint-GUID: xzeC6bYr1SIbkw9au3SkVoIS0vVP0G3r X-Proofpoint-ORIG-GUID: xzeC6bYr1SIbkw9au3SkVoIS0vVP0G3r Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-Sony-Outbound-GUID: xzeC6bYr1SIbkw9au3SkVoIS0vVP0G3r X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-03-17_12,2024-03-15_01,2023-05-22_02 |
Series |
exfat: improve sync dentry
|
expand
|
diff --git a/fs/exfat/dir.c b/fs/exfat/dir.c index 599dc81c9a08..0008d4681d29 100644 --- a/fs/exfat/dir.c +++ b/fs/exfat/dir.c @@ -564,9 +564,6 @@ int exfat_init_ext_entry(struct inode *inode, struct exfat_chain *p_dir, if (!ep) return -EIO; - if (exfat_get_entry_type(ep) & TYPE_BENIGN_SEC) - exfat_free_benign_secondary_clusters(inode, ep); - exfat_init_name_entry(ep, uniname); exfat_update_bh(bh, sync); brelse(bh); diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index f56e223b9b8f..be6760297e8f 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -1082,12 +1082,13 @@ static int exfat_rename_file(struct inode *inode, struct exfat_chain *p_dir, epold->dentry.file.attr |= cpu_to_le16(EXFAT_ATTR_ARCHIVE); ei->attr |= EXFAT_ATTR_ARCHIVE; } + + exfat_remove_entries(inode, &old_es, ES_IDX_FIRST_FILENAME + 1); + ret = exfat_init_ext_entry(inode, p_dir, oldentry, num_new_entries, p_uniname); if (ret) goto put_old_es; - - exfat_remove_entries(inode, &old_es, num_new_entries); } return exfat_put_dentry_set(&old_es, sync);