From patchwork Fri May 12 18:20:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Liam R. Howlett" X-Patchwork-Id: 13239640 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 2FC1EC7EE26 for ; Fri, 12 May 2023 18:22:25 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 029F0900016; Fri, 12 May 2023 14:22:24 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id ECF3A900003; Fri, 12 May 2023 14:22:23 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id CD436900016; Fri, 12 May 2023 14:22:23 -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 AC55C900003 for ; Fri, 12 May 2023 14:22:23 -0400 (EDT) Received: from smtpin02.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay08.hostedemail.com (Postfix) with ESMTP id 8B829140C33 for ; Fri, 12 May 2023 18:22:23 +0000 (UTC) X-FDA: 80782422966.02.4FF243C Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf19.hostedemail.com (Postfix) with ESMTP id 3F3091A0015 for ; Fri, 12 May 2023 18:22:20 +0000 (UTC) Authentication-Results: imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=RdYzurN6; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RJRnFQWI; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf19.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Seal: i=2; s=arc-20220608; d=hostedemail.com; t=1683915740; a=rsa-sha256; cv=pass; b=UKFYkB4YUa2OMNP15eFT0FmXSSDY2VaGi3lAufcQYG0n02C4YjGGGF5ZKxVulQczBb52jT nhT6a8r+YFI55a/o5/ukQXc1oDjNT8wzKokIeAFwRwOIoNMne9uSl7d1BP8WOLORDIRzTS EwqEAW/7OG/ABEOeDpfYW1sbwIJWJkE= ARC-Authentication-Results: i=2; imf19.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2023-03-30 header.b=RdYzurN6; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=RJRnFQWI; arc=pass ("microsoft.com:s=arcselector9901:i=1"); spf=pass (imf19.hostedemail.com: domain of liam.howlett@oracle.com designates 205.220.177.32 as permitted sender) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1683915740; 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=Gf/8bP5/7Y00ZHHg7g7YJwogjH7fdNlLAETXhQj1hlo=; b=8IlqDOE+CWXROkr0rMsTzyZCRjMetEokzxRlRu+DcHraAdPuS3LpjFEgNsL1U0pg31oMhG Pr1ZJRx6V5J+MhnjQorb9kYKkSbyri3L0Nc+InnaNoQi+yD0924tvpueyVlTbmog+Lv4WI tpJ4x689Yp5NM7tdyZuMj4xdEIF8fEA= Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 34CF49dt010136; Fri, 12 May 2023 18:22: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=Gf/8bP5/7Y00ZHHg7g7YJwogjH7fdNlLAETXhQj1hlo=; b=RdYzurN6Ys4MKz/5qV3veOHsOnLk9LbAeu9SV9bnMgoSV9bwDm5/5HvEZGCDWi5kPEtX IK0zTuWhhHqzAMdC+6mFzfuVzSfxK4fvehC5UtDAhcFCC3Zgs9JsU5Mm4sjO/ECOJuzY SI2HFQ2yvrwXx20eqc2PUnXGPC83tAN3hbBzD+mw7+j0CSpIFT/j0THuUqQ1JCBgNec4 G+mFLkxsJaz127ikWX7z3DrwxqtGi7Ds/40tJZUBaHhVVNJC4T+IZx7+rNfuexkz8h9G EfqRMbSpAtvVqPK35EUnyGGKvrzQFIa5DNYaIgGNzrRDJ2QXA+xHRGfvtZlWniQ0RnTk Fw== Received: from iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta02.appoci.oracle.com [147.154.18.20]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3qf776ubhx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:22:19 +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 34CHqHrB004416; Fri, 12 May 2023 18:22:18 GMT Received: from nam12-dm6-obe.outbound.protection.outlook.com (mail-dm6nam12lp2173.outbound.protection.outlook.com [104.47.59.173]) by iadpaimrmta02.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3qf7pnt6cw-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 12 May 2023 18:22:18 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=WjnKh3qSVn6MO19HC2IDjnPyc3HUYXOHsUxhyAxu3dpyqzKFF9Z1hd0o4Vh6ZKPaOGJRw+vTEQPKyJHZgpOvC78RL0O90l3O7zGQpuEtCiGDbqPvsFW0NLWZPDiS9fQb+PXJ/ea9m/fC+BJIXp2ykSGmO7tmah1PT8pWi7AnHwnA3zVLC+FFbUihVk2N1hlrYVcQgEW0Oukp4BaZQTkvFW0DW9T+gtwziN8aYbGYzfV73dskt1wIT/ZN5sof/rfmgT7S9mS4nZ68OdBGzZiEeABVftxlpKMOGxL6gkftKdRx3kHAcwGLkAHQr1Oese522LjubpmQlHT/4A85vfB2Cw== 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=Gf/8bP5/7Y00ZHHg7g7YJwogjH7fdNlLAETXhQj1hlo=; b=hFujwy9/9LTjoeIqV/+yO7X5d37Wc0omRNdLcA7JkNdxEO2lGc8UKz6qdxaemV5GEEKXTA/tXoJaIV2IFNS6NtwU+YmzVL1n7uWAJ/1TfY2D0t/6a1FgZsKj9muJAet4iXXLCy00FGcV8KVS9hyJ9rc8lXCpO/8xZvOtLqb8/zrA+WIqCST8EZ5fgmX5XmqS9RynZhvernRTQL9IR+rLR1w77BSHKnUZsopkL2gU8Im46TzTl/RViqXbcLQzDCp/Jg9NAPulHg4cj2P9fWQlZqJA1iD9j2JhdNmlRWceZF/6MAhueVLJuJZEUqmUJ8FD9NG8v983BY8OmsC9Vz2w3w== 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=Gf/8bP5/7Y00ZHHg7g7YJwogjH7fdNlLAETXhQj1hlo=; b=RJRnFQWIoHDEii1rlJo52jDvBNRsCa4DtZJLWOqN+UCaLURwqbrFr42cFavi5mW5vp7kIrh5KEByf9U+cZFJpgdq04oYhF/o45thqxKBJFGcgpOCR9qRq1/Io7hipNkW2HuRXtehzvCzwpNqNPJjEtum27kOCWhGrZ8Gj2/IAls= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CH0PR10MB5211.namprd10.prod.outlook.com (2603:10b6:610:df::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18; Fri, 12 May 2023 18:22:16 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::c478:d218:8f15:37c%6]) with mapi id 15.20.6363.032; Fri, 12 May 2023 18:22:16 +0000 From: "Liam R. Howlett" To: Andrew Morton Cc: maple-tree@lists.infradead.org, linux-mm@kvack.org, linux-kernel@vger.kernel.org, "Liam R. Howlett" Subject: [PATCH v3 34/35] mm: Add vma_iter_{next,prev}_range() to vma iterator Date: Fri, 12 May 2023 14:20:35 -0400 Message-Id: <20230512182036.359030-35-Liam.Howlett@oracle.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230512182036.359030-1-Liam.Howlett@oracle.com> References: <20230512182036.359030-1-Liam.Howlett@oracle.com> X-ClientProxiedBy: YT1PR01CA0143.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:b01:2f::22) To SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN6PR10MB3022:EE_|CH0PR10MB5211:EE_ X-MS-Office365-Filtering-Correlation-Id: 99c2ad52-d69f-4956-a479-08db5315d0d6 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: z64qFUOP1lHMrrTR0tL7R+aHJ/0uyM6kUp9xVQzbZ3O4YxMaD2eefn1onfDir/ByoPLAX8TGvpcXZQKgQ3XqFph16bqDiB9Pjph9KFA1IGSgW02++JFi/HaRBksJF8isGoEfM+lfziw21nb7qEAnLMRVv79jtTGoCblziJoqyYayRg8tbZYUPZN6OZH//7JyMzRwxFIgSXGCpCaSnjm7VID4nSxT+pfIFCCRTaqBDdBwMDnP4bh/Rx6qPYhANJ5YKfa1QanbeNn4DDl+U/nPbMPqUi+Bji4VeANAMzICyc0n2IBeN4LE6iaX64+AH1kwBmTdok2efjhJKQujDz6ZaB+1CPxCvpaujTWmOq4lzidF6cQLedXM9YTo5aHpoLC0CbniyRTSyQI0B6fxTjT6nZT5rsYP2Plus3rn76EWFXE06XqHOShdQBjTVt7NYoM8oQHo5tAMxCGaOk5dIhb4QlzhQUPp+lVGh34NYw6W6ctcXlczn2DaPYGPBU+ZVgfS5mPKX58Ft4xqENKtcZLKud4mNV3AdhG1Z3oD4Yg7cCsarM+6RqA4JxIiawlpS67V 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)(376002)(396003)(346002)(366004)(136003)(39860400002)(451199021)(2616005)(8936002)(8676002)(6506007)(38100700002)(26005)(6512007)(478600001)(1076003)(36756003)(186003)(4326008)(2906002)(66556008)(66476007)(4744005)(6916009)(66946007)(5660300002)(6486002)(316002)(107886003)(6666004)(86362001)(41300700001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-Message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EZPxZtAfM1M9B760M9mY/q+XpipQ747SRLWtwk+he3Hj8pMtLAVMCyjAkNE/nTUyyABqEY0FvnGK51ZQzTr8412a2ZjGGwdaGYTYT5pdNffhywOE7KHiZvJmhvBjGZpy/b4xj0MTvdWBrRAB8xKq2X2Oc6NvJTltIgUPC9SXizvFW77RDEpq8emJPAuNfCNAFoqer+QCywT4SzxGekjq3sairtSYW3n10AUX4Y3BqhA28j0eFyUOwztgj35M6ZnHvGKxBXI8slVgzu8wAVL+zd+za1NZq/0MkKf8/X7GLowK84pjjLW3KNJVXUtDvnaiU+GzBElgmbGqqBR8DpoMf7VLI9mjR+32dTDawji5TAbvnNykyKXDJEXqV2L1zN+d+NHTJjwLkdRTxuAJ9h4t+zsxdBI4FWKYrXBRUda8NCWRl0BvC74j/pBlckuyueOidUTY7s8oRcXTed10ObWw== X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: 99c2ad52-d69f-4956-a479-08db5315d0d6 X-MS-Exchange-CrossTenant-AuthSource: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 May 2023 18:22:16.7196 (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: ZFGJOpVmj5EWoXOVaUr78B5rj1gMw6dVblYbx1QTRqzxAYfMZ5SQqCGwY1H+rNkpTRTC16A5Csjblt5TtdfV0w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB5211 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.942,Hydra:6.0.573,FMLib:17.11.170.22 definitions=2023-05-12_11,2023-05-05_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 adultscore=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 mlxscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2304280000 definitions=main-2305120153 X-Proofpoint-ORIG-GUID: ClqZiwUU-eUopPvTNZvFGWzt8hoBwn4i X-Proofpoint-GUID: ClqZiwUU-eUopPvTNZvFGWzt8hoBwn4i X-Rspam-User: X-Stat-Signature: rbgg6ajtoihab4ce9ozmxk4kxraxs85s X-Rspamd-Server: rspam08 X-Rspamd-Queue-Id: 3F3091A0015 X-HE-Tag: 1683915740-452117 X-HE-Meta: U2FsdGVkX1/4jooPLL+U7Tjk81x+MSDx79UgfrmcrQ3/BRtX71UQuTaOrPfX++WqP1EkG4lb1QkWIcpiZsQZqlBzsCosmuCYEJPbLZnZ9+dwjiJvgbCSsnDUDL1XOTOsvQaniBP9oyco24XssxeQIbuFAsmpUM73Ozs28dkOyLssIGgHeFpN4mECY5HDLCcBWqbbUdjiBzKpwRfWFKUp9zOJSY5yhU8kS50FQxwje9RPRcD544E1d2ef5+3E1mcHt3/US87Hfd6pcFNYRAVtzFWWoJkZGMVRQNskj2CCBau1JSKyNzV+09inY2ERQOjtIUZncArYqJVNfxRv6yNQHN0RyjqglVCNIGpoiFn9YcYh7N1iE9Ga4l+Hy+90xsqvAPuSt98V87KRdAV5f2rzPkyaJqwKq0n4zIkYoAZLlUWJQKACmIuzkb+IhZJiVZxax+DfTUh9w/PPoP6ZIgsjnuDv0EgyVVeB8JJZHBUMFItbxUoELqwcMYyhioiPrpAdphEHaBJxsyHW4810ZbW4yWTJlqqjoTG0dYO3hnPtppazTUHc9JcTlyK2mcmBnZczRkVWAF8etxOUGpk2JI+iXXGDLslRtBwSEoPu4WmfMUG2YxKQDJIEGcTsQs8U/N9WAVTMEyNnFvAvRmQ6oA0Ic2Zg8ziSXIorigjcKPftxvNooAXfqZKNihtIRx1mR698NeSsqfktU75dsnx8ofLJGniDZ7dC9EmX/nCxnAdxMZCyb9EEWEzHwnqdyn9/OQPGLjV06USQpgZFagweKquzNtZICvVNu3uzEMlELzBDEZ7yKzCB6le8AqOXoROm/paegZ1+i06ytjchEi7ihEOPh/IzO9ibn4WY1jXvRAE3iot5fWwPeuvvnO929sdp2FhRfHPPHP7oeglfCdLAhwNhJWS7At1kY+RS2m32AN9jeHszyfoMbZYiZDjdHdhXiYZZR2Pv26+Nvv/SDqOoqiD 7qCPKKmc LkAHYtR/nyPPqM4jSy+k77SqZ76hbiK6lfrmFgLCSCOABp8iXHqBm9jbsz00xHCm2+jlhWpNAaomAvmJg5qZkZM04MVKXDWrWfqjdOb94DKnm7wseMYRvFJVjge4lcrLUn7nO60Nio3zyPLu5u43gvyjAawDdxL55yvyJflAMeFFN8MD3xjGJ8CumKLoO/Tu8aJbSf290j4J5iV/+8khvJvhz3xjMA2RFrXDPA6iwa3MtxLySWpJrVI1F6CCTbBZcyltTgvz7UAntZr9SQtsppVIhSgXrP+JUqQLgR1VrYFKQ/sIq/RTgLvxrJPHX07gi8sF5mujCUJ6J17PWKNjO2v9YFzoopE/0UAzVDM3B/3KM+uP1LhEfuUjiIcs9hkVxHyUPY1cKL3bpto/rm0iZeduD03rBYLDNcGjt7FCnKGUnDnM= 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: Signed-off-by: Liam R. Howlett --- include/linux/mm.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/linux/mm.h b/include/linux/mm.h index 7b1d4e7393efd..1bd731a2972b0 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;