Message ID | 20230518145544.1722059-35-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 68FBFC7EE25 for <linux-mm@archiver.kernel.org>; Thu, 18 May 2023 14:57:24 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 5A948280008; Thu, 18 May 2023 10:57:22 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 53412280011; Thu, 18 May 2023 10:57:22 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 27238280008; Thu, 18 May 2023 10:57:22 -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 0F5F028000B for <linux-mm@kvack.org>; Thu, 18 May 2023 10:57:22 -0400 (EDT) Received: from smtpin05.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id BFE12C07F4 for <linux-mm@kvack.org>; Thu, 18 May 2023 14:57:21 +0000 (UTC) X-FDA: 80803679082.05.EBA4DD5 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf11.hostedemail.com (Postfix) with ESMTP id 5785940016 for <linux-mm@kvack.org>; Thu, 18 May 2023 14:57:17 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=J3HDBfzo; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LyCFD16l; spf=pass (imf11.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=1684421838; a=rsa-sha256; cv=pass; b=AaZugoQmlHtIa19aWqTJvrv9OzgAG0gMwqULvVhxSLYl5Sl/8Vuw42Hp5pAlfL4KicJOWI yE9VQv3g/mZic2/rrtGL4RPlu0PmY1MNiZWzZfD006V9QNnERUxtouqvKhnIyxMPV6SDY9 AguJTvxsDAWQ9Lh3uA+u5A2I2Q9ya48= ARC-Authentication-Results: i=2; imf11.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=J3HDBfzo; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=LyCFD16l; spf=pass (imf11.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=1684421838; 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=H6a0kxqv5ze3H6E5XtAeQKjpADPWF+IvHJic3aVsz5Q=; b=v1GmcVvvKl5CCPhN8YQ4/zp5LAHxL3aE7Xja8zxy/tYwT7mXxRRag8Fu4raPwTQPMeydvS 9gD0YyUoyiln0oZBNgLsM8JD/r/Vy8BccR+bSLdpC5UEeKilXlxvEDrJJUGEz0rGmLdL8k M1wrZcpMxPlIThRWbqdUhhrPvtPsQvU= Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34I6JJW8026300; Thu, 18 May 2023 14:57:17 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=H6a0kxqv5ze3H6E5XtAeQKjpADPWF+IvHJic3aVsz5Q=; b=J3HDBfzob2tK9yqH3mws7MMU3prpSynvoXx4DJen3IvjFn7kVgO/461unJYAOELES3WP aY4mJOe5OYQn8stj7IAffLqzi/ZGsHA15Ynw6WrUAif9q/ev4S5OqUk1Pjfooj3Ajx3M SCmJ9drjBEAiPheL1tNOZiQtWA/3HbrDlZXTYa8X+Wt1HF3vwKnChEQQdbdBob89jaPT axtRDJY3xAEzmXNADnqNEnOykGbBjm6cG5jYpGVQlgaSWBdVmJPq8aUH0Lq88XJXhjJR T1OGtiUjVyWnDrs0A7GwCNurC5XQ2GL6BZHUzXT35Y59G5FHCsQI05U7IbonupTmRJVo OA== Received: from phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta03.appoci.oracle.com [138.1.37.129]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qmxfc2ufu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:57:16 +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 34IEEv2N034079; Thu, 18 May 2023 14:57:16 GMT Received: from nam02-sn1-obe.outbound.protection.outlook.com (mail-sn1nam02lp2040.outbound.protection.outlook.com [104.47.57.40]) by phxpaimrmta03.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3qj107c9p0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 18 May 2023 14:57:16 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=QMtr+9YqJtKd+8MoJ7JIoBsF+hjcFTUYqtTc+Nv57NhWamhOBYcfviG/Ump9v4V4N8dT7pfUKqvZIPIFUdOrCK535dDuVV4kqdv0Dla9DwULhejGADiLV7crz03yzxeC9IJden5NawDUynZ6pCMI9kbT9GyCX7tunjC7NGlCN7NQO5V61dgeqB2SVx8hIqyjgOQV3gRSeWTSdMHOYyCUu491IIaNL1mO/sqCEKvNbOTpnmMcPnLY8qG/HehI/6tMw5CNrAOfwug+E8zGvHiDuRV+mbt2mi5a1anQfMf4O87znAaSupO4ktzKyU31taRjS7Kz+6U10rV+dnpQwMuSQw== 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=H6a0kxqv5ze3H6E5XtAeQKjpADPWF+IvHJic3aVsz5Q=; b=U0+HZEa+UG5ykpZeBbcV8VzlewYJjNo6n22U7wbQmBDYKeQwIKcsqzJL/khCUVwB/R63fwkgmQt2p4hfOz4m0PBSk/tTTjXQ3PdEWMir2wimHpbwaRkBm5px+L5EgRgU94T0mGsAz3QZ1nNR+YgBkadRNcGLaaiAk4DyWlldMHUXScP9YyTJwJogvT520M6KcQ9J4CRLd7JJfsDOF5lFxiVdLshbp6FqHQqTraz6VP+loJLX3yNhA4iXtp5DsTTvTWGBt8ikj3SikwlYnc2s1udJLz8lENFAHThphI0D5NNWRqbU6G/LrIfVnGcCWg1iV0cHkkc6/dg+i4uMgmSsrw== 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=H6a0kxqv5ze3H6E5XtAeQKjpADPWF+IvHJic3aVsz5Q=; b=LyCFD16lus7PXuT+Bk1FuLyhB0gYUWjhiyLXmVCf+3CkSstl83gHp4S7+9sLS6CeIOjxDaoNs2DZ1rvXKG6/Qa5Wsr6dXpYb9FrUqWKWg2Fe4KbMLJUsDxEF86T9+myqSAHA/pye39VXHHWlx2m5gnWFhG8kv01SryIqRAso10o= 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:14 +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:14 +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 34/35] mm: Add vma_iter_{next,prev}_range() to vma iterator Date: Thu, 18 May 2023 10:55:43 -0400 Message-Id: <20230518145544.1722059-35-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: YT4PR01CA0409.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:10b::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: bfe4fdd6-4a93-4f83-9ef2-08db57b02a5b X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: qnwz1px650VVmUFvKr6kvKKBxeziT05w1+GzwQK9Hv1Iml/gLxqsJClfZjWSnGW+M1WmncoNgkAO+ddVHG259hh8Smf3zIlJDpkgsR3cm5rwg6q7kaX09s8GQjR4v1KnmGV1KgxAyl0zqN1XtBGRqNGp50jHMeWEtufw3NIpq6N1Dceni8X6pLpXOwXiQ6MjarFHVBOOPE5YIsh+/U7ldxdQHkeDth1G3rwo4nQoHOPs6Ga4CRMq7dqqCcZVphCY/g4978llGbaTYquBs7rF66ociJgIkkk5xXK1tAPLRUOSFEhbkCgGTc/K95kwycsJawHF2B6qkqKXPKhGmtkwt29LeGV/pT69NEvvJLaO9E88pUzl2GARuxNdrvlsAWBTFa249toeYeHK9tg9JjEtNyK2M6Qj0r9CdbtpowWnTggi52kFYI3/UQJd6WPS0NfKotyMHruVXAms4K8jhv3xDeeBoIaXiUPiJyzy0mDyWlZLKLPTMg7fW1ZbX6QUQaLof6C4bwegwbRzoYUEMAnV3Y7cxBrZKEj3F0OWyyOxqBd3C9PXzY2FJPx3mzZK5iBU 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)(186003)(2906002)(38100700002)(36756003)(2616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qYq8njywi/843RLBGPDqWQya7Va61JWG2Tq3nGoRqAWkaDgrCmxjNU/vgwgiv+gVoEZci8CCMJjNIRBVaQsEXL9ET11GnDS8OkZB8W52WQVEQoVfGgeLPqdt+AwUqDBG0nJ8bds/dUpRqwM/pL+M+52hvbxnmPUky4+1Qw5NpETjknNr8xmofZIHIkZpriTUo1nQEX80gVbGW1FUd2+l0gRgbgSW6tWGlcnMUvJO2WpwoH+hJ8Hq9Ke+ISFbzczVkYfbCjQRNryptALeeQ/YB9jFx+ifCuXbA4GL+rzXrDWbeO10RuaTUrzqCCGPVPhD9wxzkHW2SVTQ3vXyRIYmgDHD1nWJ8TGXMbb3U1wr3xD2OuzXF3Q3I7uyTXIBQYCh9GBACCWXXSazRbqLfeigp5QZQaSp8rvMivnfdOV8lsnnbl+gQGB+JqcGQJe6E4vqWmarl2iOZGnbnoGZ5q48cAWI+uRZpcEe+dQSvE9kJc3cYE+/2zdEMOVKE+gH5dMPVU1caYypWax4tSgCT+w== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: bfe4fdd6-4a93-4f83-9ef2-08db57b02a5b 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:14.0653 (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: 0hvnfBSdcjKHXweiF1zZ4CGx+p0akXt/QFuw1vSVRO1vwvZu9srsx0qj21BmSGmCPj6C5EI7AQ/haAHv9ojx5A== 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 mlxscore=0 phishscore=0 spamscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305180120 X-Proofpoint-GUID: U9OW2C5RdSbPKMUYnNfEMCI8XI-lXY-W X-Proofpoint-ORIG-GUID: U9OW2C5RdSbPKMUYnNfEMCI8XI-lXY-W X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: 5785940016 X-Stat-Signature: amcib5w9hgg4zg6rd1txu5ye365nojir X-HE-Tag: 1684421837-841369 X-HE-Meta: U2FsdGVkX1/NcM6UMZU1anMWRiL+IUCjI3zbzjG26GdepH/Mag6IT7zzVBXgScQfkpoW2fnT0ZdSquhUDkcSfxNwtte/CDy8RPwaIFlMUMMsibeIJjc/W5QkWSWQ53k3bCelhtoUC+UOvSvI8l3du2YtnrZItXnVqbyR5sqBOiXiSojchVCVfQ0WJ/SbCbEDEFMTGCh5joRBzW88JLJ0KjTVyVyPpUSUIo0qP7ouFzDGwO60Ziql41uFv9Wj+0cK6hnsxoY4b5biY1KzChllHNomiTzWBM6IlUTr31X81fcj0bd5gv0gtd/OlPKXXN+psBxdPjaqN/lytjYmySaJ5We75shk12bQe4aaDB2Oz9eevk6koae5Nzczh/46wIWGT8VCL/cP2RnpixJgjKvxVBrNDxQ4vktcq03pG/eYcWra+aVNvYu6QkDfPSo27fll4EDyX1vzyuZdICwy4BoMQ5EF7uBYnYUthBgRJZTOtN5wRBYm1Y8ijVJTHhe3ex6Hqs5s7LXw33jWp1AURuPcnwEe+hAMIsYI1cxWhLPsQy25pLdydlairK4QS4lKwBawWeQ8uDSWzvg7wSU1weFJiq/YUmAHtzX5k/o1LiIQ4U58pMMS/GuQ0tAkT8J+FLQluj3sHDk+t/f5LjY1K9osu/Idti6sxp+bq/JRahL72hqT5PWdmI6GwtQ+Ka5mpsGmBbeJdSIWpm+8xb1badzZ+Ctjqssr9iBLVpw5McB6xDF97IMb2sqV0yvg9q+RLbjNL8TyFTLGXT9N7za4FL+/HAsQ2ccJLYTFJKLWdK7mMxESY5zYbQo1ZEgUDWU8ijaNpg2v60ECLl2u3fjU88KbaOl9PqP7N5j5NHgzj4NFjtjxW3zpVA77Q+xH7ZieEKbRtTiUU59K+co5qYDoy58ZhhqwPsYS/KmNIyKI3LdMmz/gBqvR0zN/ZD2L78fuPFr3y3yFeCVDU18jbkDCHxm /Ui4D6qB DjHTYoKqc/3TgZoyp26wrnRYtGpx7Pdcn/ELDbpLOmsvR8LEhXX/k+phUOe6mBjYGMYdMZXJ+cmBnTjmlqKFntYBohXAeJz6h5ucUr7AGdm1dbdz21/m8AVZGh5fuyWbAreoj+j6NocGgHzcHFAXRM9omEjUdJlZYeUc3F76OGdKTGtTuRgEKT0MZltKzL04Sz1hO0x79fxTYnasJmq5dQkwenOR285kE/19GpTMSDgbgh7DxNxnsb1dKzq5xUGoYGBAEme0f7Wc6U0FJT2SvwO+wQaM2AtCu9C1SJSs2iWlfgTr2H0Wi+VmOOTM6eciq/Wc3j2+APO7pNu/oT4EWt5pEVeiDNjFQImtt8IB05YH40HzFAkBRVoEfxT6QpjZlCgqOQDLOgadHn7PWD02t1TThKl8kcCFVRyzjSIWRC9GG2WE= 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/include/linux/mm.h b/include/linux/mm.h index 7b1d4e7393ef..1bd731a2972b 100644 --- a/include/linux/mm.h +++ b/include/linux/mm.h @@ -866,11 +866,24 @@ static inline struct vm_area_struct *vma_next(struct vma_iterator *vmi) return mas_find(&vmi->mas, ULONG_MAX); } +static inline +struct vm_area_struct *vma_iter_next_range(struct vma_iterator *vmi) +{ + return mas_next_range(&vmi->mas, ULONG_MAX); +} + + static inline struct vm_area_struct *vma_prev(struct vma_iterator *vmi) { return mas_prev(&vmi->mas, 0); } +static inline +struct vm_area_struct *vma_iter_prev_range(struct vma_iterator *vmi) +{ + return mas_prev_range(&vmi->mas, 0); +} + static inline unsigned long vma_iter_addr(struct vma_iterator *vmi) { return vmi->mas.index;
Add functionality to the VMA iterator to advance and retreat one offset within the maple tree, regardless of the value contained. This can lead to less re-walking to find an area of interest, especially when there is nothing in that offset. Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com> --- include/linux/mm.h | 13 +++++++++++++ 1 file changed, 13 insertions(+)