From patchwork Thu Feb 22 23:16:41 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elliot Berman X-Patchwork-Id: 13568236 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 6ED48C54E49 for ; Thu, 22 Feb 2024 23:17:21 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 252E16B0098; Thu, 22 Feb 2024 18:16:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 201EC6B009A; Thu, 22 Feb 2024 18:16:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 02FBE6B009B; Thu, 22 Feb 2024 18:16:47 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0012.hostedemail.com [216.40.44.12]) by kanga.kvack.org (Postfix) with ESMTP id E047B6B0098 for ; Thu, 22 Feb 2024 18:16:47 -0500 (EST) Received: from smtpin13.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay02.hostedemail.com (Postfix) with ESMTP id B4F38121039 for ; Thu, 22 Feb 2024 23:16:47 +0000 (UTC) X-FDA: 81821001654.13.3DFE4E9 Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf14.hostedemail.com (Postfix) with ESMTP id 90011100010 for ; Thu, 22 Feb 2024 23:16:45 +0000 (UTC) Authentication-Results: imf14.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=G8zLuS0q; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf14.hostedemail.com: domain of quic_eberman@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_eberman@quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1708643805; 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=a8k7ZP82tn4JVJwW+w/m7k4EoKpoY9RGrzHrrV6tQxc=; b=JX9Cemk+pkWRksgYWNGgBfBiR9jcUJJNpaFqQZb/C3KweVHqxmBgB5otPfzZPVzi9hFjCD 3+G2thlREuJ43gqC6ZS/9eoBh2vfQhVeYe+8BQt8UpGr9FkRjgL8bSGlUFpB7ZZJwrR54b GUUpGCSPKANFf5XtLtkQSH4qpYDSj3w= ARC-Authentication-Results: i=1; imf14.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=G8zLuS0q; dmarc=pass (policy=none) header.from=quicinc.com; spf=pass (imf14.hostedemail.com: domain of quic_eberman@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_eberman@quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1708643805; a=rsa-sha256; cv=none; b=IuG8wmBClwYLGJO8ykPLDm9A/E58RGUIZeyu+33TLTrVFKEnBAQjt/9GXbKxXjRiuxXwnf CUIaVvDy+i6MtiweHszsKZ/Czd6rHyZ/AXobMg756hRJnqlvUWjP0gQI4fbOE/iS5d9G4n AiOsKelU9E/tR/zQyK4L7oAjy+GlkDI= Received: from pps.filterd (m0279873.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 41MN1D1E020603; Thu, 22 Feb 2024 23:16:39 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= from:date:subject:mime-version:content-type :content-transfer-encoding:message-id:references:in-reply-to:to :cc; s=qcppdkim1; bh=a8k7ZP82tn4JVJwW+w/m7k4EoKpoY9RGrzHrrV6tQxc =; b=G8zLuS0qr6d4lZUoE5CoDx+OQ1H30bu9JjA/DBQ4WHtPH6Y32oBCFeCUzqq aRECHJ8Nnre0wYkRag/a/bnHEq5di/ZfvzIFt40zo/It/7L/Yo3lf0a0UtEAs7pZ SbKN6b5H8bqSMLS9E5/YsoEbDzUgXoHRkwYC5+EJ2/mG09No+OQvpbVvPio+rs7L 4NoKBtTgW+NDPapXhOFi05jweADI/zkiqUBOSN6yH8dLtghTmF9WdFTRMy56NPQY Vv4A92LdxJ2FBQwkeDpNGUF12C3AqSq78fBdwbCBnGZY3F0qL4c9LQ2ISi/HfvhP Begi0gYT0HyrwE02SVJkWZOk9xw== Received: from nasanppmta02.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3we4dq17sq-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 23:16:38 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA02.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 41MNGbaG027727 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 22 Feb 2024 23:16:37 GMT Received: from hu-eberman-lv.qualcomm.com (10.49.16.6) by nasanex01b.na.qualcomm.com (10.46.141.250) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.40; Thu, 22 Feb 2024 15:16:37 -0800 From: Elliot Berman Date: Thu, 22 Feb 2024 15:16:41 -0800 Subject: [PATCH v17 18/35] mm/interval_tree: Export iter_first/iter_next MIME-Version: 1.0 Message-ID: <20240222-gunyah-v17-18-1e9da6763d38@quicinc.com> References: <20240222-gunyah-v17-0-1e9da6763d38@quicinc.com> In-Reply-To: <20240222-gunyah-v17-0-1e9da6763d38@quicinc.com> To: Alex Elder , Srinivas Kandagatla , Murali Nalajal , Trilok Soni , Srivatsa Vaddagiri , Carl van Schaik , Philip Derrin , Prakruthi Deepak Heragu , Jonathan Corbet , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Catalin Marinas , Will Deacon , Konrad Dybcio , Bjorn Andersson , Dmitry Baryshkov , "Fuad Tabba" , Sean Christopherson , "Andrew Morton" CC: , , , , , , Elliot Berman X-Mailer: b4 0.12.4 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01c.na.qualcomm.com (10.47.97.35) To nasanex01b.na.qualcomm.com (10.46.141.250) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: S-X8YH9UOQhwdKZl5qZ08gJqpUzKbDlZ X-Proofpoint-ORIG-GUID: S-X8YH9UOQhwdKZl5qZ08gJqpUzKbDlZ X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-22_15,2024-02-22_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxscore=0 suspectscore=0 malwarescore=0 impostorscore=0 priorityscore=1501 lowpriorityscore=0 spamscore=0 adultscore=0 mlxlogscore=955 clxscore=1015 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2402120000 definitions=main-2402220179 X-Rspam-User: X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: 90011100010 X-Stat-Signature: 3z5rpc9w3atssqdfxm7kygkoqj78a4tp X-HE-Tag: 1708643805-656268 X-HE-Meta: U2FsdGVkX1+KGIevRD+l4etPW00o+8Tx1j07lepo/lv7H3T5Q76Sqpe1OcmQDma/WsRP/BLml6NK/HQUOkdweAeXr1Wmp9u8elFWawWPfc3acMIjsufShXv2JUOOkuZ2LW94dSUAi1Et3x5vDTo4C28kPwOueUYv7Y0O79HMHKFMHZaqAngCu0gLAKyJEIFSQZaCOU5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Y/0dtSLmR9xglyaYu5xk1IX1cbpciUfziYXb68XJu0T+JieSUIcY6raXhLj5qogWqElnfL/5r8+EHM56pr19ZrtsRp06IcMZ0RqgIq5TT8SOFz/H5h5ZErpY7YCmvDHJwQztJkVxR0rtntNStwA= 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: Export vma_interval_tree_iter_first and vma_interval_tree_iter_next for vma_interval_tree_foreach. Signed-off-by: Elliot Berman --- mm/interval_tree.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mm/interval_tree.c b/mm/interval_tree.c index 32e390c42c53f..faa50767496c3 100644 --- a/mm/interval_tree.c +++ b/mm/interval_tree.c @@ -24,6 +24,9 @@ INTERVAL_TREE_DEFINE(struct vm_area_struct, shared.rb, unsigned long, shared.rb_subtree_last, vma_start_pgoff, vma_last_pgoff, /* empty */, vma_interval_tree) +EXPORT_SYMBOL_GPL(vma_interval_tree_iter_first); +EXPORT_SYMBOL_GPL(vma_interval_tree_iter_next); + /* Insert node immediately after prev in the interval tree */ void vma_interval_tree_insert_after(struct vm_area_struct *node, struct vm_area_struct *prev,