From patchwork Wed Oct 30 06:11:56 2024 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: 13855952 Received: from mx07-001d1705.pphosted.com (mx07-001d1705.pphosted.com [185.132.183.11]) (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 45A631D0E2D for ; Wed, 30 Oct 2024 06:12:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=185.132.183.11 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730268750; cv=fail; b=bn259fYPWpvpcsUx6HYf2rpw/5GBvuJZk3spLyYKr5mYmx19dR/KhvH4xEfZ5ooP7uk0K8NBL74p0GYRSzljGluKJcWkFfmUG6Y/oLI9h1Smny6h5F2Qgsj2Lu0KQ8Ce1OD45UsOE/JzJveNCk8WZrxDPQjj2SOfdap0U1tK8fQ= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1730268750; c=relaxed/simple; bh=n51TQmwjw+cBQ6KSKXdEGqqeFJP5AKYEt6r56UR6ol8=; h=From:To:CC:Subject:Date:Message-ID:Content-Type:MIME-Version; b=gxfb0y2pIx8Zw9FvifYxEi7KJNWTIcdRIPIOT59sqS/E9gFHGPwPecoxcTJCNg1CqDTt4RIxi0J0HnjgCEwsAKaqF/VOfhZwnM8p+xrMYTr19EuiyFURUv9OSo1jGYxcPej9QIFPBh9BaQQ+7tINl0S+RkzJ6c7D0H1OFrtvHRA= 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=HMCJhhVa; arc=fail smtp.client-ip=185.132.183.11 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="HMCJhhVa" Received: from pps.filterd (m0209327.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 49U5wJjL018773; Wed, 30 Oct 2024 06:12:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sony.com; h=cc :content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=S1; bh=n51TQmwjw+cBQ6KSKXdEGqqeFJP5A KYEt6r56UR6ol8=; b=HMCJhhVaLY2a3D82HkXuZ+zsLhjovwudSao7YTJKhfUEj Z18RKQC+PQZs0curfeCbGYISTHDuRAuER/3aD0Kkunvty9kHkxP6DHCI+EvRKE0V O+sqDSvux+gI3JAIxeNEm9sz1ihwJmkduYOCjPvoIMlO5mfR1zFYCFfgov5QqcqU qHzMzpZHaRmFvvrumtvASyeLsEEJJ6lfOJtM5q0JetGzGJ2OOSxDaJM17/NvMhWe v3yTtYikIMcaSFmhCwg0xP7VcId9+skSYqBzRqPO9QO+lrQAkkZ0SgNPDYJvMEBM sMJaU1Ub1XsCkvRdgBFMADhFPhbhWiAmmWxQndZVg== 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 42k2ypgkdm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 30 Oct 2024 06:12:04 +0000 (GMT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=dlI387CvDtxOVpIum5KD8/l7dNspSagP4yzFjLdbL+8YeqSkECf7LzIZn0K6R4duY1+FMXz67FI1stdU0Ws8Sb65vQhhr7Dm9sfvWzKivrfltBs7jyfgdp6I5xt9uA08uSPhW8fZ8nk0j16z5c3AYLP6XYXj3M8x3kd9C8MXvQ0znfcNHc0sdkYLpu95yIStQVACNw+hXpdTDkCZSRU0Io7GYsh8HW65Beom2WJ35qPLCTyONxUTgOuu+dYZnoaaVWw0YDyYd+tYoYE9vzkjRCNlC7K6uVVuKusYOxyCejIWOLY7vBRdXBNoajIumWsUei3C8ze5teYsx4lZ6C2dCQ== 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=n51TQmwjw+cBQ6KSKXdEGqqeFJP5AKYEt6r56UR6ol8=; b=tCGqBgTNsWEVaVFEUlBbLChGgl2IOzrsPUjWEQMgsZZk5AvOfbqO19zQ3vb8zDsAWYK9DLMhr/Q8nDUxZvNScGW/zarqeS0QXZ32Fj4Pb9XiOuu/Fl0hKx92PIcen4kRxM8XXUu7Pt2L/9hRW42URUksalvioEuWShpba3LP4Z5xCQvi0rYl10ntj4zYUOZzkvDRCqy00g0p2G8PdX7GqguTFJ7rF5e5HcsoL2AMsAREpuwrfUeSlncWJ4KmvbFWzalOieuFfL7nR50D9cJWauRua1kyYA5M1G+vFTNtNEfpn2uLdMOp+RpCUSLy7yoL/1lDGgY6VLa+oiZV740kvw== 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 TY0PR04MB6268.apcprd04.prod.outlook.com (2603:1096:400:266::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8093.27; Wed, 30 Oct 2024 06:11:56 +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.8093.024; Wed, 30 Oct 2024 06:11:56 +0000 From: "Yuezhang.Mo@sony.com" To: "linkinjeon@kernel.org" , "sj1557.seo@samsung.com" CC: "linux-fsdevel@vger.kernel.org" , "Wataru.Aoyama@sony.com" Subject: [PATCH v1 0/6] exfat: reduce FAT chain traversal Thread-Topic: [PATCH v1 0/6] exfat: reduce FAT chain traversal Thread-Index: Adsqi1tpQFrMRPIkTR2RKUgj0ngLWgABHjpA Date: Wed, 30 Oct 2024 06:11:56 +0000 Message-ID: Accept-Language: en-US, zh-CN Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PUZPR04MB6316:EE_|TY0PR04MB6268:EE_ x-ms-office365-filtering-correlation-id: 6a652a17-9717-4c23-34ff-08dcf8a9c19c x-proofpoint-id: d8690225-876f-412f-87c6-a7cb45557a4c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0;ARA:13230040|1800799024|376014|366016|38070700018; x-microsoft-antispam-message-info: =?utf-8?q?mSzxWpBXqNzRlUrvM70a0XQIg/6Gh+V?= =?utf-8?q?FH+sVqP/Ug5S3PKppKoQMhXq+IkLDnKIZVcLEvmQDvGgI2iQYne9WXht0qsbY+Oi3?= =?utf-8?q?z01LlkOaxIKjF2MwWB5FKkwt+O8qn4FWgyYxgPbYoiR9SqLkElGCJFFZZpTBNcUcx?= =?utf-8?q?ewDu1jHBcni8UtLCir3aztR6TZpBJqN4KCiSqSPCAqRbeOi/4rVZOrQyFExixEuHS?= =?utf-8?q?miKlY1lyWCLW15ArJLsbYb6I73bpaaYflEQkXA1sCn8cOjMvdXRAc/kuOwaaF1BiO?= =?utf-8?q?aAMx716gFRSefzQ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/i58ZjOSDwQpmOjlSnGQanTs/U2uvWvFTYJoC45lhoAcCv+pyydc3FXg99?= =?utf-8?q?WnBMtev0oabqgMpIUz4bzAP6VcxKHTWmQppZQw2Av9FJnZWbw2djEqC/tFnqgMnAI?= =?utf-8?q?d2P1FqfM2+9VVUb4rSoHdshCD1u1HlyhlHKBL6/Pe8CQFpCH90k58CnQ=3D?= 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:(13230040)(1800799024)(376014)(366016)(38070700018);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?oKnYy3dAM3FKIA6dWR7dFnm1hVDO?= =?utf-8?q?q5OZ26OarYpIrvpUESMrzKdeYt1ARW8eQx+xIL3iBADnuNecwfyzwYYW7awUiYP8W?= =?utf-8?q?F3JvuAPWWHIrYVdmEZRcC9dGGW4c7RoufIZI0Ur+kdKKt5Tchj3mhaASi1w+bk6/I?= =?utf-8?q?Qk7qMHYC7YCXMAAr0ZV4yH447/5yITkvX24w2jkGCVWcondJLhaV07QmXoIZzWFm/?= =?utf-8?q?X+LFaaxrtrBqFnE89HprBBoU1MLmtVVPOeem0meZ1cwrV2GYoFcwBTo4PtDNQSW+G?= =?utf-8?q?liOtX/crWLYlbvBkMy/bcKsAjchEU22QwahMCIVQbUIaGiflHJR6VdsP/G2czDpmt?= =?utf-8?q?E/vg8QR/LrPDH/vxqgErk1S7rwuRQqNer/xomoBQB2UXXETXcxmuv7CtU4lYf6Gj6?= =?utf-8?q?H45TB+4wKAnqUxioJXDAiPd8KtpYpgmBj5NQUGIGsd+uan1X/10c1+fqW1K6+G129?= =?utf-8?q?KgsZ46HeQeWY4YYwAXBA5KQDMwAD02yejBFpKJEyki59+qNB/uBSc4Tq9wEfQyHVc?= =?utf-8?q?xLgj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C3UgYzbhm56itddM5i1Az0Ix6j+ZPNxIR3TFnsJeQlDn8c3+3?= =?utf-8?q?wQsvK3Th+LQC5GxHBxD7zyPge0JasglthSqtQQTDZ971/bd0fFzyoXUwLRMiA4wPA?= =?utf-8?q?ZPAgZU8pp6b+?= Precedence: bulk X-Mailing-List: linux-fsdevel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 5HglG82Idux0HVFeB0vf3Tcdn4XGMKqJMforXzw2uHvTC8N1HPDGNS5mfiHg3MMdd+OT6XRZpKLCvW7h6gKbcJHlTUQR/KmsTqVAUHYmbMFuYQqQjIAfPoXU9/05uDJ+ape5K7ShE3kUdr3k0cDq6CBeBhpL2ukNEMt9ct44m287BW5mCiKILKgG2jG41mIKg5GqhytJZZYa0na+7iNzbBrO8dEsEbWEn4hk4r8slFc1yatDtcyMwQHXItgoD1yiEsdNydRknz/s3Ge+t+4fAx1L8yJTVHYFr0nmOloViLmLqUA2CM3P2ohV4JrvuGhGzOj5E7KOat25orUhyCMGA2hDqHryIuwBOcl0Ng35gshRkh9hGCN2p/LnMqulnHB0i1JI2e/ryPGlaq/PaD7A6cEz5IOiXB4VQWbAstmIC4lDI4RIJ4W0jD2cOu/drQUsQ4FgpZgfliQQ+WpuGMic1ZKfDzweRWTfYvCH1Wkuxnv/zI44GVem7E86th9g09Be7g03MhEDGVLWv62tnhW9eVixIMQ/bQZbjtZr/ktwM+fUiPBEoxXEjAoEUj6eZLW0ZFW5xMs/vtDfE0Yndpoc69hBbhTFUeW0zw3ZbRc7Kw+jnBjeqComI3GCO+7Q/UoA 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: 6a652a17-9717-4c23-34ff-08dcf8a9c19c X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Oct 2024 06:11:56.0621 (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: X253Wfyd1uUWbGnfJRfrXPQdZK47qVJpnElfgO1gt3d2oA2cFn2SxggEyPQMfnhcr3ZXR9AUjCTpZl6fexhwhA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY0PR04MB6268 X-Proofpoint-GUID: t47Pcka3ryT1vOuOlZvVm92I--Rk2_LF X-Proofpoint-ORIG-GUID: t47Pcka3ryT1vOuOlZvVm92I--Rk2_LF X-Sony-Outbound-GUID: t47Pcka3ryT1vOuOlZvVm92I--Rk2_LF X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1051,Hydra:6.0.680,FMLib:17.12.62.30 definitions=2024-10-30_03,2024-10-29_01,2024-09-30_01 This patch set is designed to reduce FAT traversal, it includes the patch to implement this feature as well as the patches to optimize and clean up the code to facilitate the implementation of this feature. Yuezhang Mo (6): exfat: remove unnecessary read entry in __exfat_rename() exfat: add exfat_get_dentry_set_by_inode() helper exfat: move exfat_chain_set() out of __exfat_resolve_path() exfat: remove argument 'p_dir' from exfat_add_entry() exfat: code cleanup for exfat_readdir() exfat: reduce FAT chain traversal fs/exfat/dir.c | 38 ++++------- fs/exfat/exfat_fs.h | 2 + fs/exfat/inode.c | 2 +- fs/exfat/namei.c | 155 +++++++++++++++++++------------------------- 4 files changed, 82 insertions(+), 115 deletions(-)