Message ID | PUZPR04MB631665EE37FB70BC1745990481189@PUZPR04MB6316.apcprd04.prod.outlook.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-fsdevel-owner@kernel.org> 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 41D15C4321E for <linux-fsdevel@archiver.kernel.org>; Mon, 5 Dec 2022 05:17:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231555AbiLEFRN (ORCPT <rfc822;linux-fsdevel@archiver.kernel.org>); Mon, 5 Dec 2022 00:17:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40756 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231175AbiLEFRL (ORCPT <rfc822;linux-fsdevel@vger.kernel.org>); Mon, 5 Dec 2022 00:17:11 -0500 Received: from mx07-001d1705.pphosted.com (mx07-001d1705.pphosted.com [185.132.183.11]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 061A9331; Sun, 4 Dec 2022 21:17:09 -0800 (PST) Received: from pps.filterd (m0209326.ppops.net [127.0.0.1]) by mx08-001d1705.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 2B54TTSq024648; Mon, 5 Dec 2022 05:16:57 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=iBj07h2SdMFEsf8LZAE/mWaTKdfHGp4yQIyyvjn2Kdo=; b=E6Mg1wU/V17L2tQYDvjdwoANzaarcIrBbJwshs6osd1bz5rAU2lu06H5EWwpy7HWS3gB plysGeod7wWV7bJW0mBQHPbiy+kKXkYBde97Be8yf8YugYwZDhGrIhCOkFJJlFssLJ/q H3Ublts3HvPRsTj3wRlcBJd7b6KaQChQEMPNksdrM1kVZt5a6kCb1oyerA9wgINlqmQ2 xiUtobLEpaJdRj9GFz97RRyEkoojBX8giBPxqP43iRs1x3Nt2SsuAt3fzNE9OWQPfbT7 MGXPkcKqBwmZbrvafHEHo5gnIujLMb0/RTyYjJoVrE/2LoUSYvJmvsHEq4uYX6zYD7Of UA== Received: from apc01-sg2-obe.outbound.protection.outlook.com (mail-sgaapc01lp2111.outbound.protection.outlook.com [104.47.26.111]) by mx08-001d1705.pphosted.com (PPS) with ESMTPS id 3m7yen19vp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 05 Dec 2022 05:16:57 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JSGhgaProBxfAgBbQ9zxorrq6xyK7vzIAD5Ot/JiG2fWv62PLpfN6EaZdZlcUND1sEG/u7w7XobcG3MEUR7ZZRCLtom1ojKGlPV1RADiLDc8gsQvNMT9jtkSB3/1hRGb2xd1nctrSCJH/uKGYNBOjwo/CALhVBhGHb+mpJbXYfhesioVXS3uCo9KF5qiiA84ZCL0wxBYa2/yFjDf5YGtjlaYReEv86k/bGm8HRfXMa1szVrOvWt2BGMtzCZH7/mw4rNzz4tf0MLsrnlU5P6kQSXL4uVYK/+WiY4Cap2HHDSMHoWcaTIH7eFF5M0W5ACE6pDKh5qx8SWl3AIhKv20mg== 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=iBj07h2SdMFEsf8LZAE/mWaTKdfHGp4yQIyyvjn2Kdo=; b=akSbij0Mn6TEwGPNoZ5hYGVKdYWnWm3w4iAqZSfPpO2MEDrgvKv6LV0UuWuTQ3SsHj9sUfEMW0e8VyGpdd4OAeiaDBwGQK9mp9nbQBGFyT3x7m2wASEGoNajNS7w/IfGFCQDH6QCYUsQK9tdosg6iEXds2hw1P4bi5EuVzMZPkeBfEJLT+czHjLkpOHLiLLKh2DkcCgVRl4+/H0G60WIqfrzBefi5PLmnYFvbWnZhhfXraTZHeSCCpZDU4As1uPzFTAaDABnMvASvKcBu3iEbtTBc1T2U1wmwJMw36UTguH8FHpDNz+390gk8HCQbyyRKgknJzw/1X8zP+/noAF89w== 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 PSAPR04MB4166.apcprd04.prod.outlook.com (2603:1096:301:3d::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5880.14; Mon, 5 Dec 2022 05:14:05 +0000 Received: from PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::c689:d665:b3a2:d4de]) by PUZPR04MB6316.apcprd04.prod.outlook.com ([fe80::c689:d665:b3a2:d4de%6]) with mapi id 15.20.5880.008; Mon, 5 Dec 2022 05:14:05 +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>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org> Subject: [PATCH v1 2/6] exfat: remove unneeded codes from __exfat_rename() Thread-Topic: [PATCH v1 2/6] exfat: remove unneeded codes from __exfat_rename() Thread-Index: AdkIaFX5kufhihWgQh+oIh/p8AZ4IQ== Date: Mon, 5 Dec 2022 05:14:05 +0000 Message-ID: <PUZPR04MB631665EE37FB70BC1745990481189@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_|PSAPR04MB4166:EE_ x-ms-office365-filtering-correlation-id: 8f794ed1-b7ef-40db-3649-08dad67f8814 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 8cKXA1q5xcG5rrw0tqT5qz2CvUzepBUk1uxwWsNpFL/MxPncds7poDDuPcTVEWSx2S5ax32DZbixeAdQYzBfx9UQXJA6YHuLa8HZ3YDea2Q03kl7JUk19avBcXOAraXY5scOtxU6YuayqHutmDPCBJJxtSXf1ChzD/VjVGCzjzPsJPqUgCcNDLPJPwhPRQ1ZdVXtKNTP0FrZnvY4gkUV/Wh/JdxvwIKGtgPgCOcGsBxfbJ7Z3M97KqedjdVJa6I/kCsS7jv8YuL+XC0TE9QyceFZm+NXQg/BTMHZdNoBkyCOt4p5lcmZ2f1wdYav0GmU6ShgFpXvcsdyrwQL0f6ijQ+YUMDUsVuSPaDyCwCjtGrAq6F8q//Gw9ZJrrfGYXWBs5Dahn07q0enTmtKXs8QRgPt4uvk4iYTtaHrypZuSJDPYCVuP7OekFCB10PhG8dMwQDRijpFLDqiL+ANaodo+faEc+j6SZTpuFBqLoVbbMc0vyEuaGlu8z5gQrKmTGmT9rMPNpPBkrUZUuY0k2Wh1mbR2x+XUT/HRViTSLCT9v084qnUlTZ94d4r6G9GTY+5rNeY8dqRlCglZ8bkqDxIbPatFJ4tOP1FZEiEp8F6p4JrZ5fo2iMZB6CkrCcv8CADEw1RL1AktbkhoXoyHXpeGD4eGKVbpUgSnHcP1NEu22g8W1zgqzHHmADfCO+qk9YD8UGM6hkfPG3DBdJ+ElSZJw== 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:(13230022)(4636009)(376002)(366004)(396003)(346002)(39860400002)(136003)(451199015)(8936002)(5660300002)(316002)(8676002)(4326008)(66946007)(41300700001)(110136005)(64756008)(76116006)(66556008)(66446008)(66476007)(54906003)(86362001)(33656002)(478600001)(71200400001)(55016003)(9686003)(7696005)(6506007)(2906002)(38070700005)(26005)(186003)(52536014)(122000001)(83380400001)(38100700002)(82960400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?fgy4P+9tnNJdnu80vrxRIVESbiMi?= =?utf-8?q?hlWYEh+/RANungiVK/r6Ux15ypmn+DEVlO7K+GABSTabOQrknLcfHU+K7OLggmlUJ?= =?utf-8?q?6S5VoWJj9l8I/Fi+oDW6d0iiL71SU8mHHtmljX5+iBEENVefP6fKPmjP7zwDBblVK?= =?utf-8?q?ys9gfjVxrXysK5sSg2EXsTb9RwqLOXH7OeZ1xejl0UgUmgC9n0FAbDHQ9JyR1eVi5?= =?utf-8?q?OI0ezXfS602FB4TQp56Y5X7g999wZydRjNU3V6TmBuMDaa1PCdArHlQA4XlCRkDg8?= =?utf-8?q?AqCMwHI2gCk4TYKKD6ho26X608XYKRc4j8jN8s6DPJb76yAGujNEywSV4tBDZutWZ?= =?utf-8?q?t3x5RxcnDK1erLAHofl5iATvNxIl3VEHdpubL5A9/lBq9OTH9UhpxPtq9qN4WQiK2?= =?utf-8?q?itIHbJefuvIO3mMFsSDgi5RFRXvEVQxdcBveOj7lkSuqnLPYj3Je6gXrMZ0QdFQtR?= =?utf-8?q?mpeFduSoJ3PV9TB8QQpAc83NaaWpYvgZpPrMHPXQqgX6oesnZQu0NNkNVNihiztva?= =?utf-8?q?KsljvHyrSEepoGqKjIIdZPpfBVsQxU4OH3bDk0dgu5K3jnQTS4HuW2zLzF5Hgz7Px?= =?utf-8?q?38hGPyxO1FX2y6gq3D6QUkXM9I5fYon57FqclqkdbT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Ojskcbj9/DTil?= =?utf-8?q?GqXsIiCJk3yM?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 MIME-Version: 1.0 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: igmAgz0sW5UOKg25TV1XR7cej1wamFSJvtsJ4GJ3mf0iayeUbyChnSYHrrlodLh0ShUpZc27e3Plpk0aF6v/vugUeNfG3WCYJEu8A4HMKb3SzuVSUILudqrsWYHTjaXNRe8b5fnRBeFepU+eHELURMTStNO2L6FDvr3oddv0rI0NUH8itsvul0GOBfwHGFkOCO2AXmrJ/QCl/f4NGkqsgWFIKzbVZjMch/rjaXAXDygbcf/0+YzuEDR6M8RuryDzXOgsSQy9BlFJ3yxS0zEhDa2IISqB6w096muUv5LH4WuIv+0AJ4f3/vtqcNMkOmaMpzTi0KqS5RqSNYnL05/N/TA4CIpSNNI11C3PmobkHGBxdnbj7iLbt8HWiSX2xFJoh/u68jXtl39I549nPjXv4FdzQDto2JpWxYzxh64SVKLvKxLxlvnY45F1nEMSLXzRnqwn7mnKhfmeaN+FQcczflYXrODiHf9Ad49NYz2Gr599NU4prB4nrjysQzxCfB7DC42na9+36Dno6q2xzN72YxH/348tm+JvgiPnx3o0xw98aIWHqSEAkpKazV6N8h4Ola6U0tw+1SU/IgnlFxE2A6vPxdHVoQzEMJdFhbqZZYZNKDo1I6PcjS0IlbUHKdg6J/KSuExCz0C/pf3NDWuPlnxpfoW7u625LK/IsVfsT9XMAy0O25P0AKFdhBQoI8I4CZjFfVGdTu2q9k55BLUAJOR6sopGQkJeFSJkBOEBBfVRMnxd+FboP96pHNSTvKq9xQBGEBWRQJ69pRDsa1nkqY5VafQcF9R5w1GBaFfJNEHUIdFqOkvLHJIV+0UEBHpa3S5i9nLyYC3kA/YmGcQDHKdPpHoPYv3JCiDpT0Vco82msDaMP77uADVCHBwfwzLr 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: 8f794ed1-b7ef-40db-3649-08dad67f8814 X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Dec 2022 05:14:05.8406 (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: VzVmPkOb++Q87pkTRnZH5YMEicj81ryZ9KvNG1eAdX2/hl9w1T+CffQI2hYAmP0Lk2PgFS0UvOe0CGDHDIwSVg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PSAPR04MB4166 X-Proofpoint-GUID: IwZujAylVIf3ATr5bYp4FXk0UpLDz5QD X-Proofpoint-ORIG-GUID: IwZujAylVIf3ATr5bYp4FXk0UpLDz5QD X-Sony-Outbound-GUID: IwZujAylVIf3ATr5bYp4FXk0UpLDz5QD X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.923,Hydra:6.0.545,FMLib:17.11.122.1 definitions=2022-12-05_01,2022-12-01_01,2022-06-22_01 Precedence: bulk List-ID: <linux-fsdevel.vger.kernel.org> X-Mailing-List: linux-fsdevel@vger.kernel.org |
Series |
[v1,1/6] exfat: remove call ilog2() from exfat_readdir()
|
expand
|
diff --git a/fs/exfat/namei.c b/fs/exfat/namei.c index 01e4e8c60bbe..347c8df45bd0 100644 --- a/fs/exfat/namei.c +++ b/fs/exfat/namei.c @@ -1175,7 +1175,7 @@ static int __exfat_rename(struct inode *old_parent_inode, struct exfat_inode_info *new_ei = NULL; unsigned int new_entry_type = TYPE_UNUSED; int new_entry = 0; - struct buffer_head *old_bh, *new_bh = NULL; + struct buffer_head *new_bh = NULL; /* check the validity of pointer parameters */ if (new_path == NULL || strlen(new_path) == 0) @@ -1191,13 +1191,6 @@ static int __exfat_rename(struct inode *old_parent_inode, EXFAT_I(old_parent_inode)->flags); dentry = ei->entry; - ep = exfat_get_dentry(sb, &olddir, dentry, &old_bh); - if (!ep) { - ret = -EIO; - goto out; - } - brelse(old_bh); - /* check whether new dir is existing directory and empty */ if (new_inode) { ret = -EIO;