Message ID | PUZPR04MB6316C98ED4C7811402F3F0F3811B2@PUZPR04MB6316.apcprd04.prod.outlook.com (mailing list archive) |
---|---|
State | New |
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 A6BDF1F869B for <linux-fsdevel@vger.kernel.org>; Fri, 17 Jan 2025 08:16:52 +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=1737101815; cv=fail; b=l4NYJzyC+if8YTwlC8VGpt7lDZ9J2aeX1wcCckigo+L78J89ogERFvnCKzdmO7kAp02i3R2zbzT0zc78nO4brVxL09vx9d/Ayvvc++q9OL0ds+ynEQtJ9RgsHyqSgyOoVnjXx8gs6VVXOPcja+9H+hPags9Ln9GIlMMBEi4Baxk= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737101815; c=relaxed/simple; bh=XM7zBuR3ErapLXj314obO2uAAiRMXfdkGUym4Htip8A=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=MEIYjGXpRGGg7EvkkjaUV0T//6yusw72hQAnFaO62hVMWzThB8onjPkHlRfpipCQM6JSaeubEhVZPQACD01C9pTB7gN70s3rDyIK1aXF4wbtpFLge3d9JaNsVu9wuXglp6RbzNiLReixnNGOY92047Ply6eYOgdHjdYPnNeblrY= 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=F9WgYT4h; 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="F9WgYT4h" Received: from pps.filterd (m0209318.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 50H4P8h8011261; Fri, 17 Jan 2025 08:16:30 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=cc :content-type:date:from:message-id:mime-version:subject:to; s= S1; bh=MoQ8ebwxlZujHpKwOw+UhAbFj94pSkHo3koEiz5bm4M=; b=F9WgYT4h6 ibEpZlFWDS30dIy9OL2irvsxcfJC3sx5dJRBlXtr2f/WyO22jKmqeYV9jzGK2Tza uZzizxr+Rhp68/4Z2uwNjPgjCdQWMVMfb0OOhKdi5mmDNpVr51Ory4KTHa8dTXPK HvNK1Lbv8YZLNagRXOWbMBHbvTEy21FTVilyAmUrWIR/DlRTk6K6cyTvaWgJhg69 H8fwZEOq24xzDCTT0YKpKBm3NgnPF2IUfcTCawNOJzZ0/4ygOc48XSqk04tXtkZ2 xTdxHwdexZUwJwwmOfLpIYB+UootJzDd3DaWE8uhHyK0NCxduSQtptdUxmf0CKrU AA5WJJqtIC5KQ== Received: from hk3pr03cu002.outbound.protection.outlook.com (mail-eastasiaazlp17011028.outbound.protection.outlook.com [40.93.128.28]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 443hsnvwhg-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Jan 2025 08:16:29 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Kykqbps0GW2mhni2TCayOkWg6uxcTOKKF1yTf5yC1ZA8SlLygLO1qGeKhi+pFSEK7X0sahEVtcNXjySu93h3+a55ZA9FB8/W+/r8aPoZYnCbDbiSFi4FlYCfO2aNP8hI7hS+gKr7bTHFh8ONKW7xeizjs5edlZZQNmKsMMZ8uExbDOZ5TCteVKf7ZjpzoC1Z7ZgAmnfwIX5jjL6LkLXlOZZ7y5bG7JVv+jfHfQUO2JKwbgdbHX8lQqSbe56zJi/jMpgyOr3lDxui52UMK/KUq+Vi10wvcubXDX3HK5kdBjQqqWvdeFPbrg3puHNyoOO6+P12ZmlTlkbkLUiNlxPJYg== 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=MoQ8ebwxlZujHpKwOw+UhAbFj94pSkHo3koEiz5bm4M=; b=vx9LpmV1TtZEMfH7vg5KYOXh3zTWe0gFnjLJR5JLKLJzGt8VvWoEHTSzBWu9ipkcC4/pdwSJmQHRlijp9GUhF/GgV+Mw3qm4/zfzC/+WHNzm06+3v9AzqAS6O7GmTeXWGcm2fkIuzBF1r2wbtx6L19z0xIuKndicuzMBFKbcb/RYhxgLIRwEHRElXU6BgfCk5ftVCACnZfFnhGXjR0DJfDTcCeYXnke//kA2xI6wu3Tqek7V+YZmMndhhZny1VRVa1aGYv0eSgoLiawaK2dl4GdI5GQmKVJoeDFhWb1zPemyqYXdOrVguz67x04z+QSPuYWLyUj1N0PcW1IUWstG9A== 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 SEYPR04MB5786.apcprd04.prod.outlook.com (2603:1096:101:86::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8356.13; Fri, 17 Jan 2025 08:16:24 +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.8356.010; Fri, 17 Jan 2025 08:16:23 +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> Subject: [PATCH v1] exfat: fix just enough dentries but allocate a new cluster to dir Thread-Topic: [PATCH v1] exfat: fix just enough dentries but allocate a new cluster to dir Thread-Index: AQHbaLeR+fGzOmL3QkeMJzTQJ3OFnw== Date: Fri, 17 Jan 2025 08:16:23 +0000 Message-ID: <PUZPR04MB6316C98ED4C7811402F3F0F3811B2@PUZPR04MB6316.apcprd04.prod.outlook.com> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: yes X-MS-TNEF-Correlator: msip_labels: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PUZPR04MB6316:EE_|SEYPR04MB5786:EE_ x-ms-office365-filtering-correlation-id: b2ae37c9-f69b-4022-4196-08dd36cf3ae6 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|366016|10070799003|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?iso-8859-1?q?1AHHaFVJj16uwwxYKAwN5FEXqF?= =?iso-8859-1?q?MclUluCnXWWPmBTuiimOpD95UBI7T9wGZID08zfmcs0oWXr+JL5g7mxPXGto?= =?iso-8859-1?q?B9CDTIIHhwv+zxe1Mxd8U2YFaZ8iXudvlxRBlV365rjAUUDNmbP3mGLfMCoD?= =?iso-8859-1?q?jfCvwrVdoNAVXJpb6HxlR2g80yyhvqu30edrv7QIKhZrCw3Uq4we6Ft1gUDY?= =?iso-8859-1?q?1GyRvhB4HNC39Ivr783QZQFYD2nQ7yM7ngnqsgU4CPqchauCOHIxG9PQGIbw?= =?iso-8859-1?q?o7xpb5YskqYS88H4xYIjljlF8u6Mp9cwPoKpBScm1J+Hk+64IwJAxb8phcNc?= =?iso-8859-1?q?peTY3+iDtvlSZNBFqcNYZpFg2oqY9U6b72fKif4+K2zsHCan9zAFjXX58XYo?= =?iso-8859-1?q?9cEjzKYXX3h3BEmtIsfSKWxnr94OGhGzbltlkWBr1PyQflcrSiPyZDZVQ+xY?= =?iso-8859-1?q?Hi+vzK+frwSkLBfj4jEOBc/f+KgrgXr18nVHlrJA4MzABcvyLH9dp4jEuiAX?= =?iso-8859-1?q?EVid0q1ln/6dNbUftc50UyQEx5tHuLD9oaRvi2TeZDZ6P/I8+YRORwsQYPbc?= =?iso-8859-1?q?OKKSd6OwicaW8hI8CvFFfsQVmKovoN39B79yOON2KJG+g6OPnHQqiMlGB1+6?= =?iso-8859-1?q?5DmebtwFb7lkJoUrM49jwUeC2k3d7s40iJ6GECiA+Pn9nxVAyGhbULMTZKI5?= =?iso-8859-1?q?PRwfMZEHswWyG7HZjJQnEhYiDy62k44aNnz6wm+H9pg1amdqoXI9643C+tgC?= =?iso-8859-1?q?8yQDPWhS63nluNzW2XZxwFaQZTEVwliaX8hJ3tfvs0MXv9RSaPYCQgqULOFy?= =?iso-8859-1?q?ZQSzIx8bxqUEuwnJgyFaKfCAHc0wuwSK38qd8ELdlP/KQQMZkTm+iCGVbsl4?= =?iso-8859-1?q?dm991hp0swjkJ1TGcauXnCNfAC7N3MDUHE2I0FR7/ibUiFYS+uwjDyECaSWk?= =?iso-8859-1?q?SzSuKf1liwETU7xSq6RjtjnorPlkivWFeyns0IsfzW7B8tgZO2Rc+C2PmZrV?= =?iso-8859-1?q?p4Xj4X2hd3fmeTQ21T4yVeadlvLBlskB0yREjOZAvQJ5c9Cwr8nkFHqHoD2N?= =?iso-8859-1?q?Hvh+v390XOoKJVztfbRnB1He97R00q3aOYIfwMATPVr3j7iqV3BpMcXuO/jT?= =?iso-8859-1?q?wl4RihtDuenOJcSob1L/rYMYUnsvfmPzylHhBVl5WfnEdjB7/unHHl/IcSuk?= =?iso-8859-1?q?U4/puM5eTE7vDrdTRkqI3hQm0umxtk5Pp/iD3CKuoDL+rrWnVuEzbkbNXzzJ?= =?iso-8859-1?q?SwaWbgEH9eI/FHM0SIpgbjTeR5FpAuw2eVeFf1pgQzA9k8waLV2G3YdrU6BA?= =?iso-8859-1?q?ZTI8gOPTPPjkMBICGtsDxt6+WXIBdrmS6a/WxBthaKE61s2O7oCgq1PNPsXJ?= =?iso-8859-1?q?eYPCZve4GFdBzVNyHpl1SBy0CcBoLnGtZgin7SCZBn03RovRkT1P/o1khhDh?= =?iso-8859-1?q?5iWtLJSaX04pfwuu/ea/i/e+eaVc/IJ7nVGz8InzzHNZvnq/4qVM+IygDYLM?= =?iso-8859-1?q?kXI9bn?= 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:(13230040)(366016)(10070799003)(376014)(1800799024)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?SZpHVZK7JjJjPuOumajCD1D?= =?iso-8859-1?q?7H6KdJ3R/EF3kCvIfBYYPAuQ+q36SDQQJEPk9LzkFSluzZtz0y+RSaFSNCLP?= =?iso-8859-1?q?vGyCSqrriHzUdIi6l+ImTyGUHKvsAE+0wYYYP8D3ki1Qg2DiqdoIEbQNC3sV?= =?iso-8859-1?q?l3BUP35z2drPUk2i2ACSLGRZwSBN2GT7BLtn2B3R4DPQMXwTtY4BvFpFLEow?= =?iso-8859-1?q?/2UAqOhfijeJZqE0aad4CpPLP1qxHBP2QjCUQowZgtMRT2pD+MXoPeydV3nk?= =?iso-8859-1?q?jueuyh947d3kl4PE4XVfOHCcfdrhF+acx01Lew4ZeGH1uzWHgIBod4Rm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xTQCdaaUeTKzSwUHCqs5MuZmRt78Ubz+sOp4btkJRQROARdugYC?= =?iso-8859-1?q?od4cTqozR+dtrhX4l6bvFDJy09kcpsefHO/yCFJCOV85lm5a9JmrfinxY6H+?= =?iso-8859-1?q?Up5AbJ6ripud6NkOROsNsvb4drhfEfjC7D53DAB47ueznTUoeGeItCjXJ5ZY?= =?iso-8859-1?q?0F4DNvN7Kh9DJVyVLAik740VxA4fkWNMmhsE47SV3hiqFKLYmYKewBO47qbr?= =?iso-8859-1?q?Cj6qaPiXuOZ1wXix7dHWgWBwX9jrfIgXHuI5dkmbZeAQR9IjBK+Hzn2bbhaZ?= =?iso-8859-1?q?n2e33JLPmEAcpBbKuk6G1hDDOx2ZEL9Wn2OyRl3ROa0fMcdm8h+q1L7zmyUX?= =?iso-8859-1?q?1hVrjx+8vG57pdBS6yB3Ftp60JqLFMn6ePvBQ9kgF5iSEW0LGSuAAJyBpF02?= =?iso-8859-1?q?lWuX3Ywv8pLYPMv5O0PfUZGMjwEazbxV0rlnNla2bd0kMU9DCNp/h7nuCfmQ?= =?iso-8859-1?q?=3D?= Content-Type: multipart/mixed; boundary="_002_PUZPR04MB6316C98ED4C7811402F3F0F3811B2PUZPR04MB6316apcp_" 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: sw1jLlDsC9tvxkevEEoC54ndxSUeSykNDRYdAbbbSKq2meS4IVef1RbYKa80oa6GryyXvIIiPJaJkdt2jruoTKJj8fyF/fRmwFfD/4zM8NorWe0SUrr6wc0uZ3+almQteUYObKHbosOgajL+ZCxdpX9x1eBnZ0spaAJNsUrJFibohs/kv9mat4lccoaham2wz6mGnfqWZxAthokNHC774atvsPc37KYl7MVp3DLyuSGhMMbMqoX0sLZ6zcaq/iunI6tbTd43xS+thCWT0Ze7aFmnwQbg1pG7TvpGeOu8XtMAwUOTrEmLnMSWcVHf2yshAJ8A0A3znRdtsDLN8REYFgjBc672Nio2YSb93AdLr208fo0Jt6UmAh7hxC7kg2ZoQMv8jmfT7xDoNhfbQjNXU/BY9FSvbL520IOI7UQ61jB2RwBt1vr3kvL2cmPp2rIQCDqzIr0nss8cNr+S2kvcIprvbDrU+aJhmk1ALMKm59TKnaUbxKYwHP5OtWlyF5isvj1NXZeFuz/+Xc8FcVFuvlGBPd3PLjD1PHIyazLA2cFeL9qFsVLs1u7xYFacyJgiyHydYm/3tkghaWit7G9TqLZrXSAwHmPpmFEnLQchancvqcPGG7ZAKhbKDk5hZX/T 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: b2ae37c9-f69b-4022-4196-08dd36cf3ae6 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Jan 2025 08:16:23.0137 (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: pMhwUC36DYSCNgJ1P9rzkSbBvdASJ2lwzOFbrfedPU5pfyq0WhgJVhaH+oLAiCDd1UksbS05AMANt2Vkn1ULqQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SEYPR04MB5786 X-Proofpoint-ORIG-GUID: 7NRuce8mGl8yukskPYJTkJW6q9_iXXVl X-Proofpoint-GUID: 7NRuce8mGl8yukskPYJTkJW6q9_iXXVl X-Sony-Outbound-GUID: 7NRuce8mGl8yukskPYJTkJW6q9_iXXVl X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1057,Hydra:6.0.680,FMLib:17.12.68.34 definitions=2025-01-17_03,2025-01-16_01,2024-11-22_01 |
Series |
[v1] exfat: fix just enough dentries but allocate a new cluster to dir
|
expand
|
From 04f3de07904c77decfb8e05138ad5ed0f435ad3b Mon Sep 17 00:00:00 2001 From: Yuezhang Mo <Yuezhang.Mo@sony.com> Date: Fri, 22 Nov 2024 10:50:55 +0800 Subject: [PATCH v1] exfat: fix just enough dentries but allocate a new cluster to dir This commit fixes the condition for allocating cluster to parent directory to avoid allocating new cluster to parent directory when there are just enough empty directory entries at the end of the parent directory. Fixes: af02c72d0b62 ("exfat: convert exfat_find_empty_entry() to use dentry cache") Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com> --- fs/exfat/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index 97d2774760fe..ca616f2f2c8a 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -237,7 +237,7 @@ static int exfat_search_empty_slot(struct super_block *sb, dentry = 0; } - while (dentry + num_entries < total_entries && + while (dentry + num_entries <= total_entries && clu.dir != EXFAT_EOF_CLUSTER) { i = dentry & (dentries_per_clu - 1); -- 2.43.0
This commit fixes the condition for allocating cluster to parent directory to avoid allocating new cluster to parent directory when there are just enough empty directory entries at the end of the parent directory. Fixes: af02c72d0b62 ("exfat: convert exfat_find_empty_entry() to use dentry cache") Signed-off-by: Yuezhang Mo <Yuezhang.Mo@sony.com> --- fs/exfat/namei.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)