Message ID | 20230518145544.1722059-36-Liam.Howlett@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 142FEC7EE23 for <linux-mm@archiver.kernel.org>; Thu, 18 May 2023 14:57:27 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 88F60280011; Thu, 18 May 2023 10:57:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 8401128000B; Thu, 18 May 2023 10:57:24 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 5F552280011; Thu, 18 May 2023 10:57:24 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0017.hostedemail.com [216.40.44.17]) by kanga.kvack.org (Postfix) with ESMTP id 515F228000B for <linux-mm@kvack.org>; Thu, 18 May 2023 10:57:24 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id 2AB461208C8 for <linux-mm@kvack.org>; Thu, 18 May 2023 14:57:24 +0000 (UTC) X-FDA: 80803679208.16.E70640E Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf26.hostedemail.com (Postfix) with ESMTP id 8103C140016 for <linux-mm@kvack.org>; Thu, 18 May 2023 14:57:20 +0000 (UTC) Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=M+Z0CJUh; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=UBVKT9Yu; spf=pass (imf26.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com; arc=pass ("microsoft.com:s=arcselector9901:i=1") ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1684421840; a=rsa-sha256; cv=pass; b=u9t27UzDchmrzScejKCox4+bt6Yn4KjUYuZlImC68ZzU/FLxV6qTztwGtwEOsQ2c0BQSZM 6IcV5q4k9HpdovaHyRA/AWCgZmO0ZMGdDf+RF3BYVUrJGJNjbxJGQ4VHsm0FMxDrwj9V6F r9sInYITB+VPpiaU4MWmvttI7+B2scg= ARC-Authentication-Results: i=2; imf26.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=M+Z0CJUh; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=UBVKT9Yu; spf=pass (imf26.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.165.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) 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=1684421840; 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=9UABu5yS7r9cjV080JpQK2DakF6E8hWKSmADOcCJ2pM=; b=XmkqL8tn+JDomAMh2rymgcmo48F+fCdzjgpcZp9z3BA74/cRs7EwtjFuvoPn8VYtXS4HVg 2VurqLw6bGsGF+j0ohoxN0nViZwOgdG73NUJWxJjZX0UdHtjV3WUoBb4AiksL+dKh4aa1s 93r9zlU2RrM9hEKvJprcN1ZWZI9+P80= 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 34I6JDwr018330; Thu, 18 May 2023 14:57:19 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : content-transfer-encoding : content-type : mime-version; s=corp-2023-03-30; bh=9UABu5yS7r9cjV080JpQK2DakF6E8hWKSmADOcCJ2pM=; b=M+Z0CJUhN4t0RML6X8PUATVfzQiu8n0JzMeIns3LvAvA+xwz7LSP509VzAfxtA13tsh8 LFR+M0rZEB2B8EZ21HcJ24u7ne2eKJ7luq9c6meSzoMvOogZ9MHrEMJ+h0NuAHXsasq3 hV9tiJk5aeFHiS8BdY4/884oGi/zvM7qSpG6I9QnZbX+GkiIoJr+8b3lXjmQ5liyknCC SYDjh/DC0cebeQzE+H7A52RH8M10BaoyAkjMOFLH1U4bVruTU8knFNWImrdt6xDhLBB2 wNsW35AtKnGlfHO/1CtlzRck5WkbLBVoDwgln3XASBtrV/rsaUxlguh9mV50bGA+M9p4 Bw== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qmx8j2vr4-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:57:19 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 34IDUidF040023; Thu, 18 May 2023 14:57:18 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2040.outbound.protection.outlook.com [104.47.57.40]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qj106mr5e-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:57:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZauWPGiJfal7jN5lGYNJCdguZn50BteXifs2orPmA7SU+VVOql0ROkFivnQb9S5d6MHgC3LCniOIVHL+FKlEuw1pahYiJe7upHSFaEtuizTHrpjRtw+A5amVq6Y9rrq1zganomUhM1cKCgNHYWkM/CPAZHRv+wGdqx8pxVIMrz4krLgvNeBoVfhxpkv2uDCckJxYLkyoB2rhiCjMb49NABiTer2a5azySGyhJFs0PeAnZhDJO1VgVpogR0IsYXmjEe6Bu+AF2k5+ll0lWO9yhC/EyBa0WA7msb3iPPp7leEI4MasCtDAqHUgfP/PoL9iZhJUpK7rvNnE6ixGvOMpIQ== 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=9UABu5yS7r9cjV080JpQK2DakF6E8hWKSmADOcCJ2pM=; b=bsDwOreTZppXYnG1nFDOmpO6jNTzsul7FILXlC6X9qYdWDImcZl2aeiXs8qyF/EBcIzmRdAzv2wtvxEfstTeJqaFCYFd7ljBpOFwGOhSRo3g1nrQkxRtrS0m+MffCaBY7wqSFpX2qZdrHPF11xxj+Fu1qS0c2SuPdLapIL2TT7kuPUAXD/MqxCmhmfmM2GY0DVU75IVGXlQJ/LqLKzMROELkJV9RQawXAW/AfHZODYxr3hzbHVViFbw5qEiu0CdvmM/RTzCTKnRmU+HkTBeSIjbQNmjtoPmBnVcJwGIRJSdcq6w6rn7LebVMvHCPzoNedC45jfMUKxnjpUH2N5m4Hw== 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=9UABu5yS7r9cjV080JpQK2DakF6E8hWKSmADOcCJ2pM=; b=UBVKT9Yuko3L/IoUjTbnJ4v7nYtvRIVx0Jg8aKU2N3Gd4ufGVcGp/WbVwncLjeToYtq8PtldYIRVJkWFpbN1QLskEVfQVTs5on/PDApTwzGhafqe600OlsV7X3HuftT9kEmQ9Et4/BOMWH6131SX7hUwPQd2c8oE0u4GNvoEiuQ= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by IA1PR10MB7261.namprd10.prod.outlook.com (2603:10b6:208:3f6::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6411.17; Thu, 18 May 2023 14:57:16 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::998f:d221:5fb6:c67d%7]) with mapi id 15.20.6411.017; Thu, 18 May 2023 14:57:16 +0000 From: "Liam R. Howlett" <Liam.Howlett@oracle.com> To: Andrew Morton <akpm@linux-foundation.org> Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" <Liam.Howlett@oracle.com> Subject: [PATCH v4 35/35] mm: Avoid rewalk in mmap_region Date: Thu, 18 May 2023 10:55:44 -0400 Message-Id: <20230518145544.1722059-36-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230518145544.1722059-1-Liam.Howlett@oracle.com> References: <20230518145544.1722059-1-Liam.Howlett@oracle.com> Content-Transfer-Encoding: 8bit Content-Type: text/plain X-ClientProxiedBy: YT4PR01CA0105.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:d7::14) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|IA1PR10MB7261:EE_ X-MS-Office365-Filtering-Correlation-Id: cfce9cb7-3697-47a8-2504-08db57b02bcd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: sYSbvrK3Z3yK8R0dRCBEBK+zu3wYrU0rnLqQDPZtACHV883myCCKp9TawSfArSiu2s3WGR9farps58k+UlHaPbSdvi6g/RmXCK1skY10OGW759o7J5qVby7vDWu+bKLrndccwlC1KfytOqcEpf/C4oS84QJb6qpUn4OxlNQxQ8bklQS013y6H4RU55ZfEp7bkk2Xoy/FqTCy2qliUqJ1RHzMz84y9JNLRR/tAjJDjmlqGEvvLX0n6bZutPXBCuYJaUPweKchdS4LYpY8TyOIUnJnvWEMCyBMAqSpimzLg8wjwC0VN6KxDVFnwD/18vdu/3ZIjVRH+EuPRqeZBba8bTs2ks+ZupP8nbCWXhoKjSPCmgT9nt9O895XyraDn3DvyyAK2Nr5Gc36FnsMrWxyxe6BODE43dxGXsnlIrhbgbM1YM63ea7mJnRTqYArSLLzTgOrCYDcYQVVw8QAAzjhgYQc5ACpZ9CCpCu0egILBYpxD0yqmcAybaiMjufZwMdO7yTh7Qa4HysmxH9iJr4iy2/PUV1K+nsKlRb7RnzhvJfD3sL8clgpwO80qcE310hj X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SN6PR10MB3022.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(136003)(366004)(346002)(39860400002)(376002)(396003)(451199021)(41300700001)(6666004)(316002)(66556008)(66476007)(66946007)(6916009)(4326008)(6486002)(8676002)(8936002)(478600001)(5660300002)(107886003)(86362001)(26005)(6506007)(6512007)(1076003)(4744005)(186003)(2906002)(38100700002)(83380400001)(36756003)(2616005);DIR:OUT;SFP:1101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U0D3C1M2MkXyygzXx2kZk2SYFkGbyf/mnnk+g6hdx1fu7Yo6IE6uHWThDgmdykMhQ7ifp2rpwYZ/BXf0CLs4+lH8Fm9pevKvlBOM+aKmLHY9Zg94MmEJ4GgZ6u0xm7wiq5hR9X8izHvJ0mMHl8C0RGne6x0xpPlKGCwEZ6WXB97EX57qMrtZVHOPpY8pV7sDaC3bH0La7ulNw3FYXbrDD2uipRqEycF/hpwXD2InxOsAvomMYbXB4aQX8g0j2AjpcOGlhYFUNWvFXAm4n9hJOmAyc5U47nN+/bNCvY74Jwbq6NOtFNstgirW8FhH1LJYZENU0XXpMfbx2ojjIFWtfS6wFMDHBOH1NcV2G/p7kNimdp0K+71owyesb2jLYxW8SGcDpTMoplskipLVixX9t5pulXk3VZ0pOUzSylWk8AmdfS4tIpwjMJpOboxa/TOmRUqQY6gbQv6BppXeFXJiNiQp3KjppFwXDLRIPDyyjvvyx2qvh4mWSv35XlLmaZFzfEgnPLrjA== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: cfce9cb7-3697-47a8-2504-08db57b02bcd X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 May 2023 14:57:16.4847 (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: 2LumWk34zhWU21TRFStYO3bdXdfi+nz5xcItQcnxPedXT2tZPA8rodAStO5IvjB9Z4bIj69IIJxlj7FJEjUtkA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: IA1PR10MB7261 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-18_11,2023-05-17_02,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 bulkscore=0 mlxscore=0 phishscore=0 malwarescore=0 spamscore=0 mlxlogscore=999 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180120 X-Proofpoint-GUID: 0Eh3hg7uWpi64GPgX6TGKt5oOf-HzJS0 X-Proofpoint-ORIG-GUID: 0Eh3hg7uWpi64GPgX6TGKt5oOf-HzJS0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 8103C140016 X-Stat-Signature: jca9xgz1bsf5mb7xrzc8gt8x8p1tkbj3 X-HE-Tag: 1684421840-269906 X-HE-Meta: U2FsdGVkX18oMXwjhAbDwHU00mGg0iG78E9U8mehDkSYDGXf+YqLP0ba3qXhlBBg/kdi5S+4E4sP6TN68Ow3EDtqe7iTzfZSdp7FflVqz6b9lHBgZeeldw/6pOPHLimWhpaFfCRJWAUgEVovfT0bnART4YgEDAKOy0OU1nS/0KkVWgnCuSAGWxbtKi36QZQzHNpwPBFv1CX/rvvvh4Dnz7L9WBgVGg3EXTyjqg+jg34SGBcmP1ZrMUAkG99D+vtOYip1i6xiZtdd1k8IZo0KzNk00jJ1QwjGpwcxFbmc1PH4aBpFpCDZcwxB7St3+dRe7XImZemAoc1TPx/Na4z2W8x0iV3b/MSTZE09qspg15HMFYi69Jzp7tiuN4AaNP3rcG4WLyDBXOtonztx9qQ5Ult8/XD7Z72xoXY5+52BdMwZqBuNKGnvik3BBj9KtSNV/9OWsF97OCqYXcEVyljUFp0f7kNUFoK7Mrp3e7YLNDLEr/LP5+L0uCGKiSOqvB39cKcpwzwYPcVjphN/vZ8d1EQlqWrob7gKe6UfYbp1zvmDtqV6FyOTGr16lubyR0Kgv9cz9niC2/vaLLUmSsGffXKKQTyvBUHcOM+IvDxzcc+ldhZBqU+TJIMAmbWKLeOloivycPHXgFL7cfG/O96sOvE+k8J0Kd12hsQiLt2ao78AiR9cfJAlGIuK0ofAh7nswplkXKTBf0BSzQb8j/4R8zJsEyUqs0EfmVsHWEDjheGe+7amXiZXWhKrU7ScKQSNxb4CWB/PC2/GAC4uRfkH090SdaS0jhVACqPs6d/lKu5X/NEMH1CR8ZwY5GSz9nh0EjvSVVKRKuSqaNbtzluj7D/UE2t5gg0pFrBmi0fEvJr6tJPp4dCvdeXrlCjlGJ/+ix6YcVSSWIeLx6kwaJ5lOJb3GiE+gX5WMkoNn2qzYzeqDHBuB9rbB9cYXs+WGwW0JVU0NTfPJzc7pTYpnzD 4rba/siv IazgJNC1jrJHXTlLkA89prgTUFYJrt6rTaPxxA0a2csdICCAu4J/vbT+DTDcZBIZcuwA+Pz17zKinQnvq441qcbwTA87Su/eAJ7po3Bgs4q8wOJEL4dF9iMUv9pMH0SFaprAQEuf3wm1VN3l6ZyO5X3yiZ2sR3QR2omgfw4o+M1W0Zob+ASS5OxSPli5FuBdXski6vM6zJd2qgBNxBhtFkubN3JAU/w7j+geBhFeh5/cwMJSRPhIDx+nQC91G/nuKjC5W1a15dbRaUeTFg2/oI3nrXE/C2ocD29khQ5Ph6rdN5JQ50PMS1P78NucRuFmaUKiiFfRaYrl48oeK3SBkUmqZs4KdRRm/00wAF7IjJFQnTohSb+HN5Nww3twfpjopeH3xJS9exifSSQNmUmisCseLrlYsCy+5vA+CVkmiIje1yQ4= 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> |
Series |
Maple tree mas_{next,prev}_range() and cleanup
|
expand
|
diff --git a/mm/mmap.c b/mm/mmap.c index 1602c854133a..71733953ff83 100644 --- a/mm/mmap.c +++ b/mm/mmap.c @@ -2636,6 +2636,9 @@ unsigned long mmap_region(struct file *file, unsigned long addr, } cannot_expand: + if (prev) + vma_iter_next_range(&vmi); + /* * Determine the object being mapped and call the appropriate * specific mapper. the address has already been validated, but
If the iterator has moved to the previous entry, then step forward one range, back to the gap. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- mm/mmap.c | 3 +++ 1 file changed, 3 insertions(+)