From patchwork Tue Jun 4 17:41:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sid Kumar X-Patchwork-Id: 13685757 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 51723C25B78 for ; Tue, 4 Jun 2024 18:51:43 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id CECC36B0092; Tue, 4 Jun 2024 14:51:42 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C9BCF6B0093; Tue, 4 Jun 2024 14:51:42 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AEEDA6B0095; Tue, 4 Jun 2024 14:51:42 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 921E66B0092 for ; Tue, 4 Jun 2024 14:51:42 -0400 (EDT) Received: from smtpin21.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 0F4F5C04B3 for ; Tue, 4 Jun 2024 18:51:42 +0000 (UTC) X-FDA: 82194100044.21.6D1A426 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf06.hostedemail.com (Postfix) with ESMTP id B734C18000D for ; Tue, 4 Jun 2024 18:51:38 +0000 (UTC) Authentication-Results: imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="VQ+qVnQ/"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=MNrhIruw; spf=pass (imf06.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=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1717527098; 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=qE3lKRhOHhotDxRjulc5YenacaU3n5Sw0mx2DUmpLno=; b=RWckDN5RNBPHxOADHbFdSMXgseFtq7OxuM5b6ok+4ARRQQTe4W7ELYF/pscVQ5D4DsvGuw f16sSsMW06iJlN2LQ3ukxWB7qsF7X0P7K2hcfUXi0bh5lmdsV8bT+C2CLXZa3jamVXwzgy 1if5PmnIez6gfFOVbG88u+NKZ3+2iTs= ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717527098; a=rsa-sha256; cv=pass; b=2wvLC4Z11GjcFkO6U8/vJ0pB0M3TP7BTzlRkfeaN6DA3W8n7Tcxc+liMIwA4wpDrwreien MieIyUUjiYn1B0FXSDSzG4xFJorY7bp7TPjx2L4UotHF19LseSkxmArhrIlPqi5F95RFLp 3LfzTT+BAj0SbVgMX2Vq+YWfzta7Iyk= ARC-Authentication-Results: i=2; imf06.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b="VQ+qVnQ/"; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=MNrhIruw; spf=pass (imf06.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=pass ("microsoft.com:s=arcselector9901:i=1") Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 454BnIf1028071; Tue, 4 Jun 2024 17:42:16 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=3DqE3lKRhOHh?= =?utf-8?q?otDxRjulc5YenacaU3n5Sw0mx2DUmpLno=3D=3B_b=3DVQ+qVnQ/j7pW678Xd4fK6?= =?utf-8?q?t0AJDRTOfrQd9/MjLSmD4I/HZ8OXNuM4cUGX+QEE0H1mM1d_rXjHQIk+JW7eDrX+8?= =?utf-8?q?jS5NfohFoqAw+yAfJs0sdToHnCfdfxMwK2eSn/+jftn7Dzi/2Pd_yF/eI3MBaLgab?= =?utf-8?q?C3/OQbtGshBUPJ2F8sqHb4kuSxN0o3rd7SeisQ9d6Va0gVF/jc+OR9M_hpWJbqGUI?= =?utf-8?q?i6QmHBshjFF5ZD57rWH1C37ZIV6xoytYyg7H0dG7+lVXLNeFEslWFUjpjQy_5hC3K?= =?utf-8?q?clEAQF+MoOjJmLfvGSDyVB1lIeVkwlmzvXo1gfMCrnkUVRKhWPyyIzBOzSjnYmQ_V?= =?utf-8?q?Q=3D=3D_?= Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yfv58dj9r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:15 +0000 Received: from pps.filterd (iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 454HNoQq025242; Tue, 4 Jun 2024 17:42:14 GMT Received: from nam10-mw2-obe.outbound.protection.outlook.com (mail-mw2nam10lp2047.outbound.protection.outlook.com [104.47.55.47]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrt8xx7h-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 04 Jun 2024 17:42:14 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GwMlPx8vqvqj+ydH3uPGrbCdjuihKo8X5sR5rsd6ZEbF2zu4IIg+sdmybegvMuT6/3KODPdrTll8io1jmjZ4zuuH3es0h8aVc4eqOf3LRQEIUR3EhzKzrYIhqIVqeF5m2nrn2uBrqY2Oxj7RJUqY+epd3jTj2nn56fwLWOGuqTG7B1rxvBCVJ9mLneVTegxuTq+oUAmFUJQWBCCrpbw4A3vWNvNKRnijGkQsg5stwnnKFVj8rTsb/meSfRR5zPWBHOyvQGDIEnIsn5sT5A9yXMysr1QXYpCydQ57M0XU8pWAF09S2KihE2GZMW4o/N+8PD3u+ZuO6lqhIB5MXuY70w== 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=qE3lKRhOHhotDxRjulc5YenacaU3n5Sw0mx2DUmpLno=; b=AODb+289ncSrKSzKIAqF1KcpE/C2kOM+qjrad6XaK2HG/ZLYKIEpnW3qgSUgxd3Dsw0ABDiiPSvIGZ3+jjuBgTLDbCNth6YW1tOtk32PsU+JVWcBnKbZNutkUhSjNB0+B03GaIZPrGSypj43y+gZ1TmPh9U6z75g5C5euSqY1pBKD+iMpgAweWhGy7RJ2IV+CoTtlaZaxOmEPVsAOqtymAUpflGeQwfPIlF4+WC7+mcfU9W63lEvuz8a8DqIfhK1uvjdQpzBq+l0BAvjm8c7lZZIRa2FsjIHxZAZj+jO96hGEggMxZuuWXtguhFAACCr7XSkxCjR5IhZ15PHmdqHJQ== 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=qE3lKRhOHhotDxRjulc5YenacaU3n5Sw0mx2DUmpLno=; b=MNrhIruwvRBFz44zEE+YJVRij3EF2cx77wImL76CJsiebN+OX6qjrilyg55cVvGaiDqt1wv9YH8yxdfnh1BE7DDjtumRxeAPtAr0B3+Kp4gZq5Hk/Y2z4MpksH3Y5BiinIOSX7c7jIbhzwJ/qssIdjjmULq0ZOBE/3kkIPYI3eE= 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:11 +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:11 +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 09/18] maple_tree: use mas_store_gfp() in mtree_store_range() Date: Tue, 4 Jun 2024 10:41:36 -0700 Message-ID: <20240604174145.563900-10-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: SJ0PR05CA0030.namprd05.prod.outlook.com (2603:10b6:a03:33b::35) 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: 242bdf31-f1cd-4638-0e83-08dc84bda9e5 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: IXzwxLq0YvFeuU6zZm2QzGuGqfiUlohmJzugPXs44LJHef9vuCHU2+BG2hIM0zZLcqJTsvGeAxB2PEiMgF9eZvd04ZhzUQt6C4xurMRGlZcYhWa7UeEeBZtYQVbf9vl6yklKQd1IiGNF6gkCcO8q3IK2TaMZ8+rleQ+iF0DTIOwL49rSFRX8t+Vm7oK4E28LOboEllPHySww1i3JPPWBYOR9gbHCbgR1omCeb8sjnBJIooB3oS2G6yiSgC1uGsaAOzslAHibZEHxM22j/2E4JMVJ9T2O8FBVsUvagu3HCyaf/hr3tIoAPKtWUDjL8UHD6VnGQN8/CBHjp813Bpb6mbvE6tFRe1xKMHuTh0Y/+Jy9Vx6QL/5Nzfg45fg1SOn3ObWCe/A/x8okbeYlLGlqKWI23gvnEBwqfJh9Pt2X7TjMcmhOIa+ndJd3Fpowo7Ks/HKxODoIq9DBELcIDa3Vce2KKcrDYekDzBvJafElWXS0gTiBNfor8v81rgzCIQWjvYep2Tycrxr8B7MXAKwje72gnYcjm0xvhWsY/jRHsF3bDHASsmY60TjVOqVFpVgAWgoZ0uiirv1j0HbyNwnv6zeWq5hNMLxuQmpYI7MUSWBMJ0Nq55pI3gLVyzzTvB9jzbGUXTFU+9jgDZqV8FzUeQ2GudjpIRaaXBsqos/G/HAtMFeR3yyJu33NAOwJ9w2ZeznO+t7ms++7SP0YgBinc+SqVmgioUvRPlcKYA/sE60ItmjjU8cZZL+l4YgUvGN1Dmqz5jNK7OZTxOsRd0L7hzpAEWiVvNeS9rajku7YpZAgReQbCtc6sm5AzkxaryKKjwVTBl+UKVyXrMBJMytPb5K5F17MkDQ07AumPrk+Bo8sLNuOFxhZTZ2p3EHvauqW0dtJ6XLlcxBjOWdlhR2ytVhpzAtAefOIswyLVkc+E4wiu6Qlt3OFSP9nir30EZvDZUqrRRvDuwqcZCFwIe/VEKNMOr3PjR6e9ZmEsKY2rqqQ5f73OQOcJfWsLCyyTSp+fub3N6TmFkJv+4/wumPKEdBxAxa44LBbSVu0NIbvQUCZc7aRGg7dOYO3EvitwsOlrEU5iAgl9puvfwNT9q/7B/ub08ElWSBSAi8FTR2YYWvOZkTY0n68Zfaovrhuyx52rzbf8IDLsIJcJUMogCtWsSC79hU8hHPnQOT/zupYEdHBy70pql8hGP2zzRPvLNstGSyy6wifi/YRNGtaqJY3uZT+PIA88PnjLff7jRyv3MOO4wn/cWcV3elwo50APf/vhVPDEK64JZK3jySuFVYy6SD0iyc77zkoX1mWNQScfmnDOcAA8C6hnuQV7CyB7+Hn 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: qz3gg/tYo3HyH3+xeMOp5zOQcwC9eOeaJBrnbV9cd1DvXn+BChSK3ENUV7vafSVmci91UgS+UXXB68SbRAD620Yj80bIqkqeTxKDIoDb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kvBnb2z0Af9RZLdd5zfyC2j95ULqouDrhKJJJpn76oyYHTSz2giUZQ= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 242bdf31-f1cd-4638-0e83-08dc84bda9e5 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:11.5062 (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: PwM1NUKD8GvnhIWhG9hdh4iTki9PWtMFIiZxDJn5hiV4ITbbhdiXjiYoYwmPdmsQg5AcPAKNMas7EY1J6wuZyZpKxTmPzbCaQa6WQtmj1DQ= 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 mlxlogscore=999 bulkscore=0 spamscore=0 adultscore=0 suspectscore=0 malwarescore=0 mlxscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406040142 X-Proofpoint-ORIG-GUID: fpFyMsYOsUmCGYh3QBXmq5tmS-FwDlOW X-Proofpoint-GUID: fpFyMsYOsUmCGYh3QBXmq5tmS-FwDlOW X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: B734C18000D X-Rspam-User: X-Stat-Signature: ygxw34zywmun8p1bfa7iohi31mkhjr8m X-HE-Tag: 1717527098-925951 X-HE-Meta: U2FsdGVkX1+DTFJlucOqi7CVdGLn09SrnYPP4vOECah5XWYH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Jh/T4Bg4ALqKIe6wXnI3LX/W0ecm/ZYC8AXQ2FlX/t+CkSrmuwPKDsQfoPdGkaMjg7PRcvezaKdZfX7m5gg2kreapDtwgf0eVKKqhf8C6uNbd0yx9xPORXr0aX0O3+F3wgWTw4aZqrXFQZHkve1jziraETFmlZW44CqPOffOi4U9C5gv1DevG3k96oJCXAKnLNdrnczk6qD/ZUWIuaEfeCSFZFuOlo48LD1gu6zlrBqMZnvWiMaDk1zmgKF2alXlgk3SJ+/xR7ChOVwvBsIYNgRhHkLGYzhOLzYvlWf8wLQotiApaOF4CvPVkedoGo6WIT8pqDzGnhZLsGXW0I+tcmBgUQ== 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 34ff1b3f729c..e3ec6649f7da 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -6457,7 +6457,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); @@ -6468,17 +6467,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); mtree_unlock(mt); - if (mas_is_err(&mas)) - ret = xa_err(mas.node); - - mas_destroy(&mas); + MT_BUG_ON(mas.tree, mas.store_type == wr_invalid); return ret; } EXPORT_SYMBOL(mtree_store_range);