From patchwork Tue Jun 4 17:41:40 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sidhartha Kumar X-Patchwork-Id: 13685735 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4C019C25B78 for ; Tue, 4 Jun 2024 17:42:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E912F6B00A9; Tue, 4 Jun 2024 13:42:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id E40D96B00AA; Tue, 4 Jun 2024 13:42:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C1E246B00AB; Tue, 4 Jun 2024 13:42:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id 9AF856B00A9 for ; Tue, 4 Jun 2024 13:42:38 -0400 (EDT) Received: from smtpin28.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 5ED71140A90 for ; Tue, 4 Jun 2024 17:42:38 +0000 (UTC) X-FDA: 82193925996.28.3A6F92C Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf08.hostedemail.com (Postfix) with ESMTP id D684F160018 for ; Tue, 4 Jun 2024 17:42:34 +0000 (UTC) Authentication-Results: imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=STvYyx7S; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hUrSkAFO; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf08.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=quarantine) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717522955; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=ubIaSEckWfJUp+wkuVmhNaKmXVwwu71VQEcFJ3DDB9Q=; b=D2vH/tVt4AulqN1RTighjE79uhCic2MZDS3SYlxlPgwz0v2MpbTgd5jzAHagqjkrqerfMx IkesKa1An/22+HLmyFal5j2b5oOn2QGJYgORL6P22zQb9q5cZ4hLQrgccpUWQmYCbWAgZl yTK7FDdjlD6GkgOoYSUeDZ59+y5Q6+o= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717522955; a=rsa-sha256; cv=pass; b=Sp3XUk4VjVWhkujT8+USDAWC5v729iLiy7C+iEfW5GkoXDOcmw5pGFYcYEg/uzuiEFfFyk XDyBm1ORWrqev/7XKnKTdY1Z+3EckscQHEM/jc8rpslZ79ryFLuF539kdQjP+TxZz82evx QcsHozDLC+0s9cxl/cphCCklUHrn47I= ARC-Authentication-Results: i=2; imf08.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=STvYyx7S; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=hUrSkAFO; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf08.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; dmarc=pass (policy=quarantine) header.from=oracle.com Received: from pps.filterd (m0246617.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454BnW2b032115; Tue, 4 Jun 2024 17:42:24 GMT DKIM-Signature: =?utf-8?q?v=3D1=3B_a=3Drsa-sha256=3B_c=3Drelaxed/relaxed=3B_?= =?utf-8?q?d=3Doracle=2Ecom=3B_h=3Dcc=3Acontent-transfer-encoding=3Acontent-?= =?utf-8?q?type=3Adate=3Afrom=3Ain-reply-to=3Amessage-id=3Amime-version=3Are?= =?utf-8?q?ferences=3Asubject=3Ato=3B_s=3Dcorp-2023-11-20=3B_bh=3DubIaSEckWf?= =?utf-8?q?JUp+wkuVmhNaKmXVwwu71VQEcFJ3DDB9Q=3D=3B_b=3DSTvYyx7S19v+AcJ+wSAd6?= =?utf-8?q?/eC6r+b6AqJbjblr/wQJPxJ6qnEMmdz0iZiNYFpNbezjral_GxriVPs83VO6Xb2uv?= =?utf-8?q?hEQtICg1SqBwKm6jW4Fu2f4y+ibKaeAM/jfSbDB9LFc9vYyUPMq_/vnLvs7kmptcD?= =?utf-8?q?OfkfHVV5XuZPoLBdsDoEw3QaHLL9rzND3oel7K8Os5Ci3M56Tef6Lsw_OWoLx05rl?= =?utf-8?q?WuvYRCawWpnGzD+gPAjlp57JDs3jvKCLebNK0vu/+8GbHSx28/JiLPT4Z2A_3VUuc?= =?utf-8?q?qivzkBeJjOVUUPbyyi2GfhnTdH4VFWGB6HI0vwmvOyX0dZn4AxuWrZ6SlXUuGye_l?= =?utf-8?q?g=3D=3D_?= Received: from iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta01.appoci.oracle.com [130.35.100.223]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yfv6u5jgy-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:23 +0000 Received: from pps.filterd (iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 454HN68q016121; Tue, 4 Jun 2024 17:42:22 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2042.outbound.protection.outlook.com [104.47.55.42]) by iadpaimrmta01.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrsaf37v-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:22 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Hzw/truBpbgZ6g0jbfuY9frHFcXHeQfrJGC9zm5lE37TEtOjWClU7K03wL0yV+BalLeeNR1K4q4pXNcAWK5z2xc+/ds1qXhVW5jDLHbznKTQriZAMl4a456BDtkwMp9UAS+nsqhPY3s31mjoYpBAGienkwINI97a299rNrPXX3IKqpUQEV2V3E+2E3gZxgtO3ftAF/5wqOYTVkBjetVVxi4tCkbFpFU9UcenLFW68zLx5osVfiEYEtyRAh0Vqb0iIDQBpT1Rq6RmpF4RHURwhshMoTCuDsufJn/Rbsmu0BlcKqzmeRDbdA5Oibroy7sH6IvTl+ZKUiRBU4X3AEvYoQ== 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=ubIaSEckWfJUp+wkuVmhNaKmXVwwu71VQEcFJ3DDB9Q=; b=Zv4QX9HeLm5+b7oIORRXaIzyEq/QGXbA5x6SjRhfJcdaQYljJ6HPhNkJSWDZ2Cr/0nf8LynQZbF2iXV5zYmUa1ontorlabH3rOF2McY1VAs9yunTwGTpmrsSS/FCtfF58Fb1eimCmFUAVItGtnkDvPNLu63HtjLTEnpcElQQyi4BMcmIQeltXTH+tIsd/IdM0LzTFB0CqFa0mEEwZsbee8gX2+SoTmJc99OGv3xEVWcr0DDwUjsNqzj9rn6lawDSTquQok8/HaPwg7OQ55sUbN5eVFtSrQa27OYMRHpckPX9ObizCA+QnGPbLfpGaZ7nZiWhRRxvbvjI8V4J02UnEQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ubIaSEckWfJUp+wkuVmhNaKmXVwwu71VQEcFJ3DDB9Q=; b=hUrSkAFOedraG8um4FDdjpo09CTufqcioahyK3YOTxvGDhJaroU1tTU4gG1Wo8LUpJfW6RqhfqBCf5AjGQ5u6ouICa4HgLZlq5zLSQG1R+AmrEXD8QUnioWhcHjhl4PJYqN01QT/cF8CxSkeyOTtTsWgZWW1JRufKxzrezTckQs= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by PH0PR10MB5893.namprd10.prod.outlook.com (2603:10b6:510:149::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.17; Tue, 4 Jun 2024 17:42:19 +0000 Received: from CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2]) by CH0PR10MB5113.namprd10.prod.outlook.com ([fe80::eab6:6dcc:f05f:5cb2%7]) with mapi id 15.20.7633.021; Tue, 4 Jun 2024 17:42:19 +0000 From: Sidhartha Kumar To: linux-kernel@vger.kernel.org, maple-tree@lists.infradead.org Cc: linux-mm@kvack.org, akpm@linux-foundation.org, liam.howlett@oracle.com, zhangpeng.00@bytedance.com, willy@infradead.org, Sidhartha Kumar Subject: [PATCH 13/18] maple_tree: simplify mas_commit_b_node() Date: Tue, 4 Jun 2024 10:41:40 -0700 Message-ID: <20240604174145.563900-14-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240604174145.563900-1-sidhartha.kumar@oracle.com> References: <20240604174145.563900-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: BYAPR11CA0077.namprd11.prod.outlook.com (2603:10b6:a03:f4::18) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|PH0PR10MB5893:EE_ X-MS-Office365-Filtering-Correlation-Id: 6fe7c6a7-65c6-40bf-e3c5-08dc84bdaea1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230031|376005|366007|1800799015; X-Microsoft-Antispam-Message-Info: +kK2KGzddLPySy2B4Atki29wKkhpiO1IgdUVEGE2Sq/TP6xkBIdl3qisuNiz3xH/SHoqn62+WME3vx0wJ9AqPK3wz1DBIMBuBKQw4VEu+lhxhR16tKVbsSgoWJPqc0Ux3mpAXP4O4IeeXKnhOVRWbvISBINk26QT4WvQep3NPJdEsCQ8ZrcOxj7XrzHQkkXGYqdp9k61tlA3lat6HkSqMvTc+A+cM7wT4Eb4U8UGunh3kgU5RxnuvDwFVPGueb6xerByPULEF3/Ry35SCQa1ZegNyFdMR4ODj7VCkVKhtL4Kzh5kz74SnwVKgne786kbZwHzT5XrE/FOx3v7hO1+2mxxa2Xv8JCx91j4Un7B+k21IgXA9pC4IMDH5hQ4cVZv9OlbT10B6TJimT+FhwHQHjgPt7KGlxvCXI+NdNm+/w3MtU1GCMMFUPtEKMob4EMlJkgWxxE0DXMiyMUbzZFn+Ri+BaD9crMFkqn+S8aNr0CuXohdIMadEuGCXV7iuFLDxsBYSVP4P5Lij7EyanagzbqhY/OHiNELOquZPjDxpGZxRKc61VnbzKiK2LVuGSjnMD9cUton/p93w8x/CD1ts7kPCF8CRI8IFd3pAQUzJ+9vzoE1zz20dES0zviNfXq9uSXj51haSKyz7knfBsyyVXnGy69D7sqS4hyrUPJSacQWY1kKlucU4Tmw5YgZ0rbD2kJzWf01+fHCw9nMQw8NMaOSp2ivN2GEgPLSUlqQTQq+IVj1OwPSB3DXEHboXYkDcZG7ovaHDWTqk+fzfAwBCdHlDTDqwcvdh+SGEApCS/9B2L/88+HTKFZWqbeV3jNErtOSzS3nW3KCsOUGBd1iys8MHxqENPv8eVswaJ4BISGGNQTXDx6kLRr6gvZX7OicooPW44Qcwtn/IVEZhEL4Jc4KPL7VSOCwgi+dTrAXiYRaiRRZTSpxYWp3MXiSyEzsAO1PO4RSf72z5SCQU0j6kFxl0eC+kvVnJZb8+XbjsnR1q4v0Cr86x9gY5rYzq19xYMaVqu+4cgAe/7HHeJfZTGcVBAsMogOPzmNWtys4q5HLqQFutT9VlETuR3jYxRSAuoEW8suIzZ2shyEAIq2CdJRe4/juwaF8moe/bxf009Yf9prX85MKFG5n5jLiFfND3BG+i6POJy783oUuSbOVlGz6WIkbd9+ilAF1dddVJY71cWItZLlqiG12Ja6BTR211nQTU12eUB/2lbTDFD50Mb8rIkGoEZI2ZJYGi3BDVHFIEwBo8fcrdxCbXUYbx1Jb1uSizuICZK7QKT/rhGFdHqevk5J1wxIds1jwCtxeOJk= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CH0PR10MB5113.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376005)(366007)(1800799015);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 3OttyyjxZ5HHPCYFYASpfXl22+oZA7jFjJx1SK5C4ogKvW6Q2bDKyF2ga6ZsrGXrFdZPxa/XtQUxsJ+PDo4Va5gwefyKYgfnpzlw7CXEL055lyKCrTBnowjiJCo2wCQnchMSR2fC1xaA5NTN1zzB/52vr9sC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leb/ti/2mt9lq2VioDEK3EAZuSpy8QX+tKkKtbU= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6fe7c6a7-65c6-40bf-e3c5-08dc84bdaea1 X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jun 2024 17:42:19.4660 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: N9yW4mv9qAxhUDproKoOHz8CFRqa0K0As926vzCUlWj5EZuuyCBOXxIs/t7RF3lcvqF9JV457bmabGLfJzzsivVs75jrEZCGdWESxsK01EU= X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR10MB5893 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-06-04_09,2024-06-04_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 bulkscore=0 spamscore=0 malwarescore=0 suspectscore=0 phishscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040142 X-Proofpoint-ORIG-GUID: cB5MMEMfwgSWjE-ewRZnY6Cz5dzYmA7v X-Proofpoint-GUID: cB5MMEMfwgSWjE-ewRZnY6Cz5dzYmA7v X-Rspam-User: X-Stat-Signature: h84uc1jqnak7rtqrx691664wm16fe3dt X-Rspamd-Server: rspam07 X-Rspamd-Queue-Id: D684F160018 X-HE-Tag: 1717522954-504404 X-HE-Meta: U2FsdGVkX1+Bsw3aH3TP6AppWDY9BJoPXCCthK6wo2v5Imawp5KBepkVDBtIGcKWAJDk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MsU+PfV4CXtp0AxzCay+hlM/tJmJQxXktsq0j69DI8FgufyfJQjq/sL4Z/Xe0TmwRxnwFSbngSWKNDnH9pCPid3Lig+LZc5RWBkFOmU2+tvshRg1iqNNX+j4KLb4zJrYA64hOw3l3PwHgfMOC4u2fV9PA8Qozyz238Kj3x8CVtQeLJ5eKyL0Wgr4Vwy+hk/GTbEuashhrJnwu3YPTcmX1CN8/B3lhOshbT/UdpaJ3bFXhpKMJMLH9UsvYWZGe+viacyZyHMzpt3/TBT8ZDd2FB5rNCurW3wNiiBIpunjysmY2tG9gwKk5luMnvgil3fAZPuOvLXfY/su09CmMWdxR5ZXTWtP0JIALbeT4pcp1Z6b/FmV1thIMhDBkGA== X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Use mas->store_type to simplify the logic of identifying the type of write. Signed-off-by: Sidhartha Kumar --- lib/maple_tree.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 314691fd1c67..faadddbe2086 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3437,12 +3437,10 @@ static noinline_for_kasan int mas_commit_b_node(struct ma_wr_state *wr_mas, enum maple_type b_type = b_node->type; old_enode = wr_mas->mas->node; - if ((b_end < mt_min_slots[b_type]) && - (!mte_is_root(old_enode)) && - (mas_mt_height(wr_mas->mas) > 1)) + if (wr_mas->mas->store_type == wr_rebalance) return mas_rebalance(wr_mas->mas, b_node); - if (b_end >= mt_slots[b_type]) + if (wr_mas->mas->store_type == wr_split_store) return mas_split(wr_mas->mas, b_node); if (mas_reuse_node(wr_mas, b_node, end))