From patchwork Fri Jun 7 18:52:48 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sid Kumar X-Patchwork-Id: 13690599 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 4BE43C27C75 for ; Fri, 7 Jun 2024 18:53:50 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 240406B00A4; Fri, 7 Jun 2024 14:53:49 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1C73A6B00A5; Fri, 7 Jun 2024 14:53:49 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id EE65A6B00A6; Fri, 7 Jun 2024 14:53:48 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id C3A286B00A4 for ; Fri, 7 Jun 2024 14:53:48 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 84E4BC028E for ; Fri, 7 Jun 2024 18:53:48 +0000 (UTC) X-FDA: 82204991736.16.C12594C Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf03.hostedemail.com (Postfix) with ESMTP id 2079820002 for ; Fri, 7 Jun 2024 18:53:44 +0000 (UTC) Authentication-Results: imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=lCCfvV8E; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uuDZQpHK; spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); dmarc=pass (policy=quarantine) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717786425; a=rsa-sha256; cv=pass; b=VVYH2dar9rAPW+eKI0gq+cKSRs3XZXOCtPS9vBZf2kWx8+TmFAFZXQiydYrWznpWYrlTBQ om2cIIkFUFqe3463BAiB3Xm++4wfbAM+zNiMwi6iUrolhp12WyJvHR7zlx++s/xUcJ0USp 9ezmK5s46loZ6UOLTSQNgW97CnZbCtw= ARC-Authentication-Results: i=2; imf03.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=lCCfvV8E; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uuDZQpHK; spf=pass (imf03.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=sidhartha.kumar@oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1"); 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=1717786425; 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=UJaoN99ei7MhPXDYFpeA/QQw4oOI9Gga2dfK1ADbeKQ=; b=MrGqEwl6j0yCWQoys0xddT9uzWd35U14vIblFAfrCPMRKF2xMDjjakFmoLE7o7tqML6OBZ KSRXf37BgETru8fW7p9aQdUm3uwyReflECnHD0tiaRU8x9IoZEzBUNYSGKO4f7uW3MWFjt D7+XFTsQxrpl2Z5grUpQGJ9jrrACXpc= 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 457CufGe021449; Fri, 7 Jun 2024 18:53:42 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=cc : content-transfer-encoding : content-type : date : from : in-reply-to : message-id : mime-version : references : subject : to; s=corp-2023-11-20; bh=UJaoN99ei7MhPXDYFpeA/QQw4oOI9Gga2dfK1ADbeKQ=; b=lCCfvV8EQWct+MVgNxH7823G05w2FDp5MZ1ojOjML6qOb3H+aVj8l+ujCPl41Mo2lTIw GRAYBpMm8etzxcKbrKZmwlzTQ3iddE4/wWHVQxffXBucwdutCdMMRSX+F1yoHLq82vIZ uadaimxqS4/sIkrPgg6R9BQVY1GdCY2LiG4mYIOtf+xY896WctqQglncnYSFz/Tzr/Ak +yi3hM11YSQLpsTwGXDI7314QWXJEPI+bWGnvf+XD5cdffKh1Yy+3n0a/G0rLFNZeeV8 PJwSTpq+K93yvWh3kXtfJgxYHSx78p68DaNGaU51Nqpa/+QV3jyzh52EKU8rYUKuLIQH EA== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yjbrhea3w-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 18:53:42 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 457ICR4E023938; Fri, 7 Jun 2024 18:53:40 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrr2k7tv-4 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 18:53:40 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=C5yTe6dy00VYUQJHk7tXi9O+kozuwAiBVjk6GIXKAUr0uGJ6p21j8bbuuN4qbeqnUpTF1r8iodQld6KSJyD25PGCKkagOiFh1CqkSmYrOdItzK81dcNiPxTFKLin7HIxxQzTiMiDxx0Ifckv5v6TLxIHsAbaqKgKNLtNtk1HvmZUX4IMjcO8XhFV2XTM2lnHFTL1pBKvR0sfaMNw5wzWJ9N0I8YpO6EuCdffUVhc341mqAGWwNB2rF2XuGKG41Q+zR3c55RrLouiGjvhBQKAWMgnGr8K52oXn9/Ggawqk9Z5j/5+y+wwLFdQzq1ibyFB7DQl2VC6UkQVN7pMJ0rwZQ== 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=UJaoN99ei7MhPXDYFpeA/QQw4oOI9Gga2dfK1ADbeKQ=; b=et8UaU6XZSNWM4FksdS8QeTwXawIrHxUGf+0XwgNE1XISpKQYSGhzJUMUWPI3Wy1+V064/8LAEw0m3aPmoiqGhsOnXvbZY2wo6ZeJIRYVjcgIlDrj3oyDj+Lf5Ur4qpnV8zu0ATyyDtmJuxFCKRwmDhp5tHrSuzFRXfUyZrJ6TKeoeuOVnwRutYj0r+gTRQBObI6QU9GMg07KqGkm47IHM2kLwKoJTsbndHQN3bhYAg+358IK/VFGvM/QBCfNj307nQsigqIzu0HVR9DSLKof/fyvOkKBvQO1z+pGoGpYuPaISWG8tSezAr+dbPiElW7lnjPAlGAzYtElpxHDUK2MQ== 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=UJaoN99ei7MhPXDYFpeA/QQw4oOI9Gga2dfK1ADbeKQ=; b=uuDZQpHKByuw4qoZWLgKz0kJaQlqWNrilM3tdq9/dG1LwUz8nYinank7Rbza5nz9lgikTsUYKoPBkchaP4ccYhE0+ZAM37T0mKidrjvRDnXAfGWoUKn0SmgeZwYS3hxEvpvXsy6+c1Y5fTHC43mnSJNq9PdFRqRgKSXrG1fGxBk= Received: from CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) by SJ0PR10MB5629.namprd10.prod.outlook.com (2603:10b6:a03:3e2::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.26; Fri, 7 Jun 2024 18:53:20 +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.034; Fri, 7 Jun 2024 18:53: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, willy@infradead.org, Sidhartha Kumar Subject: [PATCH v2 07/16] maple_tree: use mas_store_gfp() in mtree_store_range() Date: Fri, 7 Jun 2024 11:52:48 -0700 Message-ID: <20240607185257.963768-8-sidhartha.kumar@oracle.com> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240607185257.963768-1-sidhartha.kumar@oracle.com> References: <20240607185257.963768-1-sidhartha.kumar@oracle.com> X-ClientProxiedBy: MN2PR15CA0014.namprd15.prod.outlook.com (2603:10b6:208:1b4::27) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH0PR10MB5113:EE_|SJ0PR10MB5629:EE_ X-MS-Office365-Filtering-Correlation-Id: 8cb72308-3c33-405e-e936-08dc8723194c 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: XX3EkMZ9PYiTn3KCtDMynu5l+HZGjrIK8MYBjEsCdSko4bG4wAfPNDi/PXqJCAC6bfK+ay7Z7PRjLKGKpHJSi4WOcCxfXaltlChmEjPYX3mKmd1xFDVn10pHm7jzCvus5c5CjZCshPHetKugEkbiqUiSxRvTBXQhb9P1i32l9tdmwnTQ9yea9pHFPmKiIz3czkt5T0ZgQGhmp71BntogyNLHkNwDuU+Nl0gYaLZaE5nTwB33A81s9zrjkRBInJfJDlvKPShF+QCoz+gsYZNNDs1S+yuAtbXxqGr7ksv83Vy94je2UmCqNjMLFU/FAJs/XChz7SmgDHQ3d6AfUT7JxqPIcVPlcUB1UbM4GJDatbtATIVQHdQaxGY64ied7IjHjak+K/hzB8VnvZrMK5N8jfgFxdwhfvD1FmHOqAPCHZW93X24qKsF98HFVG+MCWoFM2KXoiHBUiu6A/8/nn/rV/gk3KZWlTLZHtlTCorEnj11fWZVMvHM+L5XYIOasPttZkDNX10anmkpQwd0k/lsxKRH5mhooPzZ7y0fRuVBtatJ+X5H0R8/ZuZADSwZ+9mEDaEMxwICQgaH8d+XNg1sV4/L8L+Hf9rjWnP2pI+kMPRsG84KvAMWERCLx4LokBEggLAMIU/tFLQZNOubXIljwNkvSJeYHnNWD5aOwjSCX0ABWvKvPXF+zymxOLo9oqOkMCiJc8U5qWtF8VUhEOE+OqmOQeTZNhEFkPWT79dutjHpnomZ4W4gG3OfU+iEYi69y0nO3y9rsLrqAh/KEJyJI4tMVHzIxDEf2Zhax7WIxugHCph/io9bV0OiE2hR0XIcJsOgDataWSMZTthHGwzwH6ORe9vl7CZjicfPGHoWrclyKFztB+lUlymW/E3x3rK/xSZnjv8dnbBhx2jYZ6Ezn8B+OLmHoCEE1646by8Rl+SVjlCNYaorn2beTIiJj1DFJ8hczJiE+TbbL87c8zoBzwuF7ff8xXRV58En2SvQDMDT9366/tKjecDnhaeP6npy3IWOgmFJfUxhL3AnU1iV2RMeA5L+dzTjR22dw21dN6OfE/2EPkJgQ1hDBkb8evT7pPgvRlSy9ts8vs4Jhavui2QvwCH8V2CQocx2GDGdBPWT2Q96h2dal3U4NlyaqEkxwSmoRsw358PtDuTdwBU7pyHsWJ8F5blsmDsEi47MnGcgsTgBGoNFbtGjYsB4FrRQ4+iAlFk6iou+7LpgMfZEhm8jRK91RO97mFkjzew4b2HF8W6IgIV7XbfMTAh6yQirnTX869OoAX7cedGIKquwkGsFCxBjm8S5kJyBqKdjlV2HsBD65HRReHwCi7ofA72K 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: vjhYU2yAcXz47qIIuFAG/FHohrjT+E0e1ayZFVd7Pcy98/HME73djnD+Bel5P0Kw8JllhZbh2LvQ61VzRuJQIH2x4U+QC9QB2IXNyp0yisPhWNVQ97qsmWza5wU/VwW4ORZTVC/AaBDcssjL1PBLfBt+GnMFdLrC9yOFV+2497KodtV/tMBHuCoyRWBOEm81w2mkA9TweL6G69db3gkIibP3U2ZZuRTOZFFuehobXAM87CRE/IiaOYBvPRNW3YFF1d1s1Hc3Mo9MQSKn/qwIj0qBRZB72R/98HPf/aaMhZoLzgv+nh2ZPx9eJTYzmlQUmjchndVoWfyyshFNjAl3EaZ1AublPBIYJ4c+xcYRHQk55BWqPBrpFlOKjV3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Vg036JyfYrpG1uQvU+0z8DiXizHYwZE6I0xrykA0g3A89kGafxwvqv2MfL7YUlmHhHywU0frbWhJp1xZZPFIVcfItkPitaOoHQGeHO9bQ2f8eRQCw5IcCekuvTOA2aY1B72y1UZX5Su3WNgDCfLxK3+HqgaVUrTfypB/5ma7Ncdl7VPJx5b+g= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: 5FooOIwhayQw3KtO3tZwwZwN8nLFWq8tf4R4MZ9z7vPoKOsP03VGxsplCI1BMZqRRMNq8lgd+yrXetnbBB/pvBIP+suEo5m4Tz7c46khFrM19lJr5heDGF61JWb8Rrz+iXqbuwrtyEAU+3+4xPcfW3J9RIrK/cdQ9q9YTcTdSmAToBduEnbPhHr9QmvXJ0q2zuyUqrklt7dcfSlGocsOL5dl7xV7wmCLhsxViGvQBvjF1WRNggypOLRSkbo/f4gq4lCRmBiJG0bcCVcbx6XH0Migu/pUUu9aXiGdhoIYlZ81ywMjIxldhTy0UJ6jqAF/mn5ZP5FnN0aZWT3270VurV+QB9hRMrfPAU1mPaAuRWkKikRtP3lpY4NlaRfmwTJcEZ6YX5Ykpijni4EYfLG1ogff3/yAGI9+GBkzwO/JFhOkC/3Hn2B0aFzEiRpRCmdA0mu/WZRjhasGhEU/cJ4JOBk6aUj31Ozk02i7TpkLeEDEGuJ1uRZNjM6BMSLN47HlT2k0UaBPGwHXiGpgh3MIg5HUH9WTQZVnnaolnkXFRDVXbsV/na1MUscNcx/gqpn77shmw/6FeRaRcR/Ci/iELjb8NWyObjbnSKG8E5PHFT0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8cb72308-3c33-405e-e936-08dc8723194c X-MS-Exchange-CrossTenant-AuthSource: CH0PR10MB5113.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2024 18:53:19.8887 (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: 4tPqoPxWH465rV2OI/3hBgJZTjX2hmjJUxV4tJb8ypyAO9ufFR/vh8Aa+0rJaRZXq3revQnMmbroMXPCZA9zQegAqw63PfU3Lb+rNOdKt/E= X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ0PR10MB5629 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-07_11,2024-06-06_02,2024-05-17_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxscore=0 malwarescore=0 adultscore=0 phishscore=0 suspectscore=0 bulkscore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406070138 X-Proofpoint-GUID: 38jTbIEemBuoqz-hQ_1EJkGhInPKsRSL X-Proofpoint-ORIG-GUID: 38jTbIEemBuoqz-hQ_1EJkGhInPKsRSL X-Rspam-User: X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: 2079820002 X-Stat-Signature: oy1xxnos95etsputfxpne5njtjdcippo X-HE-Tag: 1717786424-309555 X-HE-Meta: U2FsdGVkX1/r9LcQicJgVgCX0ae3n5MWCA4Ki3O3gPM/R1yL7nXM+9wE2DVtFDZ3ECCVNM2cvqtSCZCW57DEXskbb4AcqbwBkzdPwjX2+AyDaDZnQZYSvlxzbqj8nch+5A7FEPcQlVlgrLaERQLqmWtUDhDAwtbLhwou4OvW4CHUvqej7WSpAUfz91QBtNmnEbTxBGxDmKjv2bSRkGczzCNjr3DCrrNmzKH0QRoCSlVJS1o/f3+iFLeIZbS15i5BSbs1Sfnup31gqbiYFWljjcXV+6cxbmRzAj4Iu3FLBrk1p9n6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NlT+P5elwS1MVT+1P93RM/591Ut3345l1ugYIt6GD98+Zr9ASe8CyojoAh59uZLwe5QTzQA== 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: Refactor mtree_store_range() to use mas_store_gfp() which will abstract the store, memory allocation, and error handling. Signed-off-by: Sidhartha Kumar --- lib/maple_tree.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index bf309b7515e7..a955316b6745 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -6459,7 +6459,6 @@ int mtree_store_range(struct maple_tree *mt, unsigned long index, unsigned long last, void *entry, gfp_t gfp) { MA_STATE(mas, mt, index, last); - MA_WR_STATE(wr_mas, &mas, entry); int ret = 0; trace_ma_write(__func__, &mas, 0, entry); @@ -6470,17 +6469,10 @@ int mtree_store_range(struct maple_tree *mt, unsigned long index, return -EINVAL; mtree_lock(mt); -retry: - mas_wr_store_entry(&wr_mas); - if (mas_nomem(&mas, gfp)) - goto retry; - + ret = mas_store_gfp(&mas, entry, gfp); + MT_BUG_ON(mas.tree, mas.store_type == wr_invalid); mtree_unlock(mt); - if (mas_is_err(&mas)) - ret = xa_err(mas.node); - - mas_destroy(&mas); return ret; } EXPORT_SYMBOL(mtree_store_range);