Received: by 2002:ab2:6309:0:b0:1fb:d597:ff75 with SMTP id s9csp1237895lqt; Fri, 7 Jun 2024 11:54:58 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUIYTc6EbMErCa6JgAIOx0qPe42Pxutb2GlYdCRKeHz3HWlCA523G/3PuqbO0PuAIp6Nd8oqtDt2sSbXVjTnOGL6jslJOXa/VhK7InIhQ== X-Google-Smtp-Source: AGHT+IHUnB84aA6LOmf84CUpNCrf0mqZ4xeEB9sZz9g3v9fRqD4qir4naSrDvD5r88JBQpSJzUH9 X-Received: by 2002:a05:6e02:b2a:b0:374:abf8:4f65 with SMTP id e9e14a558f8ab-375803ba2acmr36576845ab.32.1717786497985; Fri, 07 Jun 2024 11:54:57 -0700 (PDT) Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6de2ae0f201si63387a12.864.2024.06.07.11.54.57 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 07 Jun 2024 11:54:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-206622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-11-20 header.b=lCCfvV8E; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=uuDZQpHK; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-206622-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-206622-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=oracle.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 468A3288248 for ; Fri, 7 Jun 2024 18:54:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 16AEF15ECE6; Fri, 7 Jun 2024 18:53:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b="lCCfvV8E"; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b="uuDZQpHK" Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) (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 EAC7814A4C3 for ; Fri, 7 Jun 2024 18:53:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=205.220.165.32 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717786434; cv=fail; b=IOld60fdASwlsllQMsUcCu7nTX0G7HV9IUh2kGTlxy0D17E0VDQF2ELtbiVtoFnqtaDX0eASebloPZYuk0zb4EEXs2sCZFSdWmSVWsW6cstHIKrSHaFjkIe6UYQLsJQatLKrPPhO2cIDO9iFRZrYKaj718Ydg+6PWtSEnDIsK4c= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717786434; c=relaxed/simple; bh=jEvta4pFfQcXTPGbGH/LyIsgvTLScDY6hMP9nCRwmdU=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: Content-Type:MIME-Version; b=TjavLWAkA6OVEzcipxHYmOMNIiQnX77Yp6cWlre2xYUz1ZgA4JD0Rf0vcflHFg+fAqUXXok9ZWRSqsKhG0CojljVa9x0Sx0Ev1oXbwqXKY/u2ahjNCqX+FOA1xNn+pvIa87wDwu7UCjmnqijULkoZ5P83YP/rVrETb7cuk3XCak= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com; spf=pass smtp.mailfrom=oracle.com; dkim=pass (2048-bit key) header.d=oracle.com header.i=@oracle.com header.b=lCCfvV8E; dkim=pass (1024-bit key) header.d=oracle.onmicrosoft.com header.i=@oracle.onmicrosoft.com header.b=uuDZQpHK; arc=fail smtp.client-ip=205.220.165.32 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=oracle.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=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 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> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: MN2PR15CA0014.namprd15.prod.outlook.com (2603:10b6:208:1b4::27) To CH0PR10MB5113.namprd10.prod.outlook.com (2603:10b6:610:c9::8) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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: =?us-ascii?Q?XX3EkMZ9PYiTn3KCtDMynu5l+HZGjrIK8MYBjEsCdSko4bG4wAfPNDi/PXqJ?= =?us-ascii?Q?CAC6bfK+ay7Z7PRjLKGKpHJSi4WOcCxfXaltlChmEjPYX3mKmd1xFDVn10pH?= =?us-ascii?Q?m7jzCvus5c5CjZCshPHetKugEkbiqUiSxRvTBXQhb9P1i32l9tdmwnTQ9yea?= =?us-ascii?Q?9pHFPmKiIz3czkt5T0ZgQGhmp71BntogyNLHkNwDu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y9ts8vs4Jhavui2QvwCH8V2CQocx2GDGdBPWT2Q96h2da?= =?us-ascii?Q?l3U4NlyaqEkxwSmoRsw358PtDuTdwBU7pyHsWJ8F5blsmDsEi47MnGcgsTgB?= =?us-ascii?Q?GoNFbtGjYsB4FrRQ4+iAlFk6iou+7LpgMfZEhm8jRK91RO97mFkjzew4b2HF?= =?us-ascii?Q?8W6IgIV7XbfMTAh6yQirnTX869OoAX7cedGIKquwkGsFCxBjm8S5kJyBqKdj?= =?us-ascii?Q?lV2HsBD65HRReHwCi7ofA72K?= 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: =?us-ascii?Q?vjhYU2yAcXz47qIIuFAG/FHohrjT+E0e1ayZFVd7Pcy98/HME73djnD+Bel5?= =?us-ascii?Q?P0Kw8JllhZbh2LvQ61VzRuJQIH2x4U+QC9QB2IXNyp0yisPhWNVQ97qsmWza?= =?us-ascii?Q?5wU/VwW4ORZTVC/AaBDcssjL1PBLfBt+GnMFdLrC9yOFV+2497KodtV/tMBH?= =?us-ascii?Q?uCoyRWBOEm81w2mkA9TweL6G69db3gkIibP3U2ZZuRTOZFFuehobXAM87CRE?= =?us-ascii?Q?/IiaOYBvPRNW3YFF1d1s1Hc3Mo9MQSKn/qwIj0qBRZB72R/98HPf/aaMhZoL?= =?us-ascii?Q?zgv+nh2ZPx9eJTYzmlQUmjchndVoWfyyshFNjAl3EaZ1AublPBIYJ4c+xcYR?= =?us-ascii?Q?HQk55BWqPBrpFlOKjV3xwxsUJ9F65ZuX8AtKvpRHfJwfevXKSdS9Q9JpgAwR?= =?us-ascii?Q?ZcPkyzZ730hZjDRmZ+Rg0tFPcFzkkbQsn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5PHFT0= 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 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); -- 2.45.2