Message ID | 20240607185257.963768-3-sidhartha.kumar@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <owner-linux-mm@kvack.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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 73C48C27C53 for <linux-mm@archiver.kernel.org>; Fri, 7 Jun 2024 18:53:20 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 216416B009D; Fri, 7 Jun 2024 14:53:19 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 1A2006B009F; Fri, 7 Jun 2024 14:53:19 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id DABE36B009E; Fri, 7 Jun 2024 14:53:18 -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 A6BAD6B009C for <linux-mm@kvack.org>; Fri, 7 Jun 2024 14:53:18 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 3B62640279 for <linux-mm@kvack.org>; Fri, 7 Jun 2024 18:53:18 +0000 (UTC) X-FDA: 82204990476.16.DDEF254 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf01.hostedemail.com (Postfix) with ESMTP id F13B54000E for <linux-mm@kvack.org>; Fri, 7 Jun 2024 18:53:14 +0000 (UTC) Authentication-Results: imf01.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=SrZjdlJS; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=feqNBvCJ; spf=pass (imf01.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.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-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1717786395; a=rsa-sha256; cv=pass; b=A7ylXiUKFIob02WTDALMFdHkkhgiSnNsFFmGc4Ez3u8l3eJOjXEPCfMRy/1DnrVyJzjBgi 7OFAY1u55afgNwZzlNUzMAdsWscgbph/jxv3sATEyG8TtUA0mBv/daD3hJSHekAPe0PRgp P3l+jPyX3Yj5K4A2XJEoHxJkhs1GKs8= ARC-Authentication-Results: i=2; imf01.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-11-20 header.b=SrZjdlJS; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=feqNBvCJ; spf=pass (imf01.hostedemail.com: domain of sidhartha.kumar@oracle.com designates 205.220.177.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=1717786395; 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=R5DSk3bdiGslX9Z7wkh3/TmOZQ0ej4zmzvHswv6wkU8=; b=7wKthP0MT1JWInEjmsxO3jcsuUy3iuhL/rkoO5UxoQkWHQ2vbXPjND2Sl79LfKEQ336TDH ukvGe38+07G9/SxxYRKOBTD1/QFMpQlHlFUzpcemzb4ScrbUQ6u+QdboCY74BwbMqCtQ4k Ch/Y+jjNf590DmolzoXtx4RjkESaBuo= Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 457CuUSj023582; Fri, 7 Jun 2024 18:53:11 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=R5DSk3bdiGslX9Z7wkh3/TmOZQ0ej4zmzvHswv6wkU8=; b=SrZjdlJSQi0Or8bhoRBC3BOv+mKPrkFAY2NocLf8u/dww8jAlvLZIAOhW2SBxjEU+62c rb+yTnKewUmUS9NApWXkHzYNLUHAoDa+uc9WNOCFEqCH4HFUCGhR+jBkYW305V/iSp/K KPpLrrKq/yWgun09pgcTnLK5ZJqSb8mzsomViSB/mmO0iot+vW+lhJtb0tslM3D+adbr gwgnU1qxFBAM0NgQ1qVAJ08HZY4nkuUaAl2NIM9mrG1oP6yBF++lw9E68diftVxGzz0i S22mpAQFB4cTFxyCEb9vdeIm5Stj7z6oInJK1WcH0/3PBrFFBVjAGy1MkXRkyeqFL2fr 1A== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3yjbrse5ja-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 18:53:10 +0000 Received: from pps.filterd (phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 457Ik5lj020634; Fri, 7 Jun 2024 18:53:10 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2169.outbound.protection.outlook.com [104.47.57.169]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3ygrj6xy8d-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 07 Jun 2024 18:53:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=girx4l3d2GFdHMlJTc7Cst6oTS3+8ad5+tmIUhxctlnnSKuL6NngvXUWlDWJMO/LlI524mBYKLTZLU8FF5ND+OnwCXcCwgjJfgTD6RQxq4amojsexa4tlyAuX/inA/cclg8n2mBPoR3Kb75y63OPs6bQKogpoISmx+jG0wF57UoQpDjR/Mj9PKa9pPd243lVLLTuzYUn7VoLOtckH6TvhcwDA4xcZ/HI3MTlWUOGcTpX8oOjIGAUHf1MTMc5415faNwycWskLi1cbH1c+EqpOtHm2c16PI0rbQq9Ep0ob8tzTbt4gzYCkxJ5SnS/tOY8t8QUJq92GoD4vOEGJDhFhA== 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=R5DSk3bdiGslX9Z7wkh3/TmOZQ0ej4zmzvHswv6wkU8=; b=RHwoM91F5A93wtnWA+ovRRCeIZ9R6FfLZzjn+HQ36nrfxkx+u9qa8jgzeBiDyqtQDGqJN1MAdRJPgN8zl6PpqF6+kkhuG8Lt2oeCqgsOK8e1OD3YrvRFXZfqyy5CHMYrp4QLhvI8bJpqCA7EyKgE/2Y9UGeRKw8+3AEWTtKMOE/pmjSGhT1iHX23kg9lRRY4JOeiUrvfxR/cX7Dpyp8NYuJqaC+5+WDVq9au+lw9kHlRXh0enTK8lhlj4f4X5nbtAZnPJz9zkKmFQ+EH6p47QPGPat57N4M9dXbAsNZW+d9I2V60UUV586oiKfxKtN7P3GAIbE88AaCNIp9VNrCNJQ== 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=R5DSk3bdiGslX9Z7wkh3/TmOZQ0ej4zmzvHswv6wkU8=; b=feqNBvCJ6Q+Lppft7sRsNeeIA+AHvBYGIfDlcOVMwYUkoLRMN28yJcCH2Rjd7Oi0lVQfW4CMUzDFd8LWzj02RT4u+P0Z74s0h1u1qGfBJ/EEOpZI73sL1p5m3V7UjjcGAVq0FcXpT5DjX/zlpdBl8muYujvQiFAO7EUB4Os1vxw= 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:08 +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:07 +0000 From: Sidhartha Kumar <sidhartha.kumar@oracle.com> 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 <sidhartha.kumar@oracle.com> Subject: [PATCH v2 02/16] maple_tree: introduce mas_wr_prealloc_setup() Date: Fri, 7 Jun 2024 11:52:43 -0700 Message-ID: <20240607185257.963768-3-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: BL1P223CA0024.NAMP223.PROD.OUTLOOK.COM (2603:10b6:208:2c4::29) 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: a665820b-41ed-4c94-053d-08dc8723121f 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: Y36SVGahmumVXVN9w/QrGYrQDQZY66ynzTEN/nwNQzgYb67YQDRi3AeTYUGdhQ3UKRHDEpXfCmwT0CCjsBYkU9OWoWShyVYbAMDV0+3DJ1vRWBhIXxyE7dZLB8pezMkL4DiTFrrcm/zNRk6pS5oc36KseGL3Qfzk0Jvc8LQ3BBD++vfFUkPzrReeAiBfhQjq0URJEvh6HYqCVrjZCNelkfiyERPhqOzszykQ63iUcmjHd5Ot0RDwgcC3Pe27VlNrtVpkiboRPjUbxO1+JnZjzstZc442cW27WLwIETwQi0C0XJ/DZ9KLxaHE8ex0wlDlFv9jcGIUQ5YbfYlUheenPTJSvhEnAyJFQNimFz22MrjPnbuomCCPaAc5fFpjGDKe0fP85IPm3JVgE4T/U3YmOAiocBoTfeXZQWMawbT25sU745FhMUQ7BW3Z5Uzdq+sCchnG9Fom1POlr2/7BBsx+p5CN1iweAh75FnGFEaVwOfPASQck1qPhl4lzGBOugZVBsvHVIlzkqixA31SiCd2mpicAKb0hOU/Ju/mqOtS0q7y9vvb6zSNJDfrJIDQd7sL246MG1xmwS0XAihDlO0Y5grrwIh4f5AJPcccEr4L5p37UPZrfjDBXkvDbh3+tqje9ynHGrMVHevlaTm6NZv2pRZ8B8/eW62Yn1T5Gv3nO4GO+kAl4rmqsQ3mAD8yot7QqrT9r5/S7sIduNpww7igQLwwP9OMWTmpMXHplJ8axe3wXXbzRO8hCcwaB+XPdstQ6wkaZd8j38JQolI95wqoWuuBAnP6P/2ySxBR0bxiGpxnjbcFs2vkidGbc80shmJ9VLuAadlriAVAd6LxYip/xbHfdSWPFROY3RWy7AzlIb8KR/omARGA1AGe8mN98TuohgSe7LOVhhoeroR270QTLk1+aWJ9O4L5+CNR+eyYo/asJXihMaFokqjEyqC21quOan24YH/Klaugqo3cSTBHkpmzjU1aHC+r3fKeGQ7wmiTUe0oS35El4mYShnG8bRn9qbgVg6MtWYQYKVz8ix6qDPOXslo8/699EtwPY4QnwYQ77aSZy7EYP/38Ahk3meP1PRRFoMccQdQByVHI18IYBoiuZHPC8wnuTIca4G8aoTkjigxii1cRASTJ6ydQGI4w6VBdLqFXQ2CsrThH3++705XrCLeDwXdHgo1PUlNZIImWgTJG6wkki/h2MPV4yZXdf3wdQXnPJqQfvA4XBiUGukTecXcAEag9VnJJOsQ1ta88Dqm/emZg5E5uCyhkIF/tb9v/hrhvfTEQA55YfWWsAO6jdZxE2YB5t4MhWH/TrMt7aO+rw6Y2oeh2bWFjQhmj 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: WLtB4uZA2/Wf1iwUa4Y8fZqKKpq88SxbzBrqzRVKHnMAXaX3WTeWP5u1QjaTlkqeC3cbBE9sm09Wq1qJZdbRsivyiWaS4HqfwXfEYj7u1SFtl1xPaDEHMfyl0dCQv+/rSnBUALmT9XmKujzVkSp7YSbw9wgpFYb9l4CGE+o8OJ958zPuLI0D5E41to+ZFILWZUBBptZb87DON2CzVcN3nvE9iqmmJJZdyzgbWCqmVVFXtEWkAZ7MvWTAG+1MWTOUsaTMmxH9f0/yZng4U4SxA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LQO0Hk2m5N/2aqugd39jbO0Sh3RtdH5yZkj+IcrODYURzRrpTJC34V4PnsPUBv/WX5ssrjtJrZO5JTJQyagNUhjHkJIadLMFfDGTxmrmHZpfufYE1d1fi8Nk81d4Cf8QIgEbGSLgAGnIAk/p8OlhcdKUeYK1OcXBt4tHqX27KigMhQlXl1G6488AL/711G3EFvgjyo89ST+yYnofHPnJc8HkBQhQarsni3DI9l9CVifcNfeuxrQOPyy9GWQH80m2h4ehKdtJyTLyFIXp9+gWZ4= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: ClmEHYhk3Qk6clmAs/K0nudBEz4vpjGzL3rgF7VJYDR7+zMlYy0ZsVRcUDJAZ6WgXmX58gLeOPOlekxhPcoptIdSbO1tNtjh+Xp0N6Y2aXQSPC/FgAtDZCo8YhRMct+Gv490tmOPz61aw72GEJEPxGtKlIZY60Yatjse8A4kJ/ZRF9fzEsaNgGFWz/qqYKooeeARm7Nvr2N7WfMnp5ktlV51tTETPBLOjgrOrlsyPyGE0qmskUsQqBaztJif87yE0KR4kl5+Axi2aIIALIkNv1Ic/ml3MrOwLp5E1Sde2OSg4sFBITPSjgA/HLzA04KugmRf3VIJ9NRvTVGRKRozkjMsJefOKrs3g1CV1SrO6HqdbseDLf46uqfYzVUIh7FeotncGppIHpPg1JYULkAj2To5uVZvsye9+Pj3p+yU7FBx59wWVsnJn4lvt6J72Xhe0xXW9qAQ7WwwzGC+GdlDRpXIGZLPXxVAzVVRVdZm2cyg6dyd3S9Z4Bx7F3ItwayMniyL1bEnGclVYZLYVF8v1uS7OstAFdQ6qXML+AxK4YBRup2t5rFGyEjcomK7Sw8IfyuvMgEwBYeaMEA5zhLE1ynByEOBgA9HkOqZMfrWJO0= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: a665820b-41ed-4c94-053d-08dc8723121f 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:07.8644 (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: LGwA4+zctvNE3gUkzfdRbamTI1FL+rDRDbdeG32WcTOHE64lLB44aRnAJzuMCAYBy9MfFiwJY1KrGvVxiskeGSTsfDMgiMivo99S+Brg77o= 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 phishscore=0 bulkscore=0 adultscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2405010000 definitions=main-2406070137 X-Proofpoint-ORIG-GUID: y0HlS3sp1E0qKoPNvEr7C4JUB0XeEYbi X-Proofpoint-GUID: y0HlS3sp1E0qKoPNvEr7C4JUB0XeEYbi X-Rspamd-Queue-Id: F13B54000E X-Rspam-User: X-Rspamd-Server: rspam12 X-Stat-Signature: 3ad9by88ecz1n5iu1quujsfg9gz88ims X-HE-Tag: 1717786394-902269 X-HE-Meta: U2FsdGVkX19pyXjeBjpppDva3HXlnz8NPIsWp73GhmjHl0FKe/c1q5YlJlurWfam576tRdRdVNrQwBKeZxBj/tjl4xebTKwHzMNfp6OFZshfWVwSW9oxo905jOLr38dILNx9KqQaDdWn7R8U/0WqOs+c+7HH5QlMuJHiO9xbLrPFAcaZvlueEtg3jIlJAxXAxEI1i+s3vMm+Pdx4zbZ67/yhWGRi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6MIIDZ24byC9MTxL2A10UsHNerD4wdz1Z9+bNetmohen2f7XSKkB/4udMUNNsEj58/n/cNXhX/Z3htpzqc9VhFDAL66KO+8cQZ5UcxQW/VatEm29EmQ0yAhQQjRT2j/gXgVVWlzVWae0gBuFTw== 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: <linux-mm.kvack.org> List-Subscribe: <mailto:majordomo@kvack.org> List-Unsubscribe: <mailto:majordomo@kvack.org> |
Series |
Introduce a store type enum for the Maple tree
|
expand
|
diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 2d7d27e6ae3c..ccbec0f66562 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -5402,6 +5402,13 @@ static void mas_wr_store_setup(struct ma_wr_state *wr_mas) mas_reset(wr_mas->mas); } +static inline void mas_wr_prealloc_setup(struct ma_wr_state *wr_mas) +{ + struct ma_state *mas = wr_mas->mas; + + mas_wr_store_setup(wr_mas); + wr_mas->content = mas_start(mas); +} /* Interface */ /** @@ -5507,8 +5514,7 @@ int mas_preallocate(struct ma_state *mas, void *entry, gfp_t gfp) if (unlikely(!mas->index && mas->last == ULONG_MAX)) goto ask_now; - mas_wr_store_setup(&wr_mas); - wr_mas.content = mas_start(mas); + mas_wr_prealloc_setup(&wr_mas); /* Root expand */ if (unlikely(mas_is_none(mas) || mas_is_ptr(mas))) goto ask_now;
Introduce a helper function, mas_wr_prealoc_setup(), that will set up a maple write state in order to start a walk of a maple tree. Signed-off-by: Sidhartha Kumar <sidhartha.kumar@oracle.com> --- lib/maple_tree.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-)