From patchwork Tue Jan 9 19:38:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Elliot Berman X-Patchwork-Id: 13515292 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 E206AC4707B for ; Tue, 9 Jan 2024 19:39:16 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id BFB6F8D0010; Tue, 9 Jan 2024 14:38:17 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id BA6028D0016; Tue, 9 Jan 2024 14:38:17 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id A206C8D0010; Tue, 9 Jan 2024 14:38:17 -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 7240A8D0015 for ; Tue, 9 Jan 2024 14:38:17 -0500 (EST) Received: from smtpin29.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay05.hostedemail.com (Postfix) with ESMTP id 53DF240973 for ; Tue, 9 Jan 2024 19:38:17 +0000 (UTC) X-FDA: 81660783834.29.402DD5F Received: from mx0b-0031df01.pphosted.com (mx0b-0031df01.pphosted.com [205.220.180.131]) by imf20.hostedemail.com (Postfix) with ESMTP id 5CCD51C0016 for ; Tue, 9 Jan 2024 19:38:15 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=AiafqSiO; spf=pass (imf20.hostedemail.com: domain of quic_eberman@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_eberman@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704829095; 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=20kzljP3XXAHh/+L/ahQqYgdL0v1bIu2bkQnV2tNRHs=; b=PGUEBFAFUNhflL5YHUz+3gyM7jzf/EjKG0l9L2M6jJ3ma3qkP190fprxSDq8EJQKek5yYP p8o9IyWGL3PnTViLeiJHcthTjIqtdcR/EWGU1TcyFx5t/hKDHsuJNRD0DkEv+Qm3iQCV7y UVRl91tOmh+EI7BzO2g6hGJWvzSzPNI= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=quicinc.com header.s=qcppdkim1 header.b=AiafqSiO; spf=pass (imf20.hostedemail.com: domain of quic_eberman@quicinc.com designates 205.220.180.131 as permitted sender) smtp.mailfrom=quic_eberman@quicinc.com; dmarc=pass (policy=none) header.from=quicinc.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704829095; a=rsa-sha256; cv=none; b=3P5QdMTP2knlBlPW94drtRNrnau8dkHVJQYyNpheWI7UlgVZyTR/oiUQUfdLlYYYVZxJM0 AMvjCPoXwPKsXvulHOKxRoFIfUMhsT4JXBWgoCgbGuuNq+vvOV9DDY8fMmzp6PCEPl9Dfa 89Z3oxJxQb1eUfH9H9JxWEBzAhnCrM8= Received: from pps.filterd (m0279871.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.17.1.24/8.17.1.24) with ESMTP id 409HCxfL023212; Tue, 9 Jan 2024 19:38:07 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=20kzljP3XXAHh/+L/ahQqYgdL0v1bIu2bkQnV2tNRHs =; b=AiafqSiO0HLbkygtBVeLwn7mIJx2BHAqg5lrO/Svn163jQjHcOC+xb+nDCU esyZXhvHXB+EesuvfQpViRbZglB1ZkjSAI6NwKbyZMXejIqF1jU1hCC2z2tKdFE6 0fpLOKx1un1Yv2B/InIyqai+BVTvbqaCN+hpyR3SoCAAT7GMVx5MjkJwcoZxTOeL aezOfD8xmns8GLptJ2YxwyKx3dz/jXSJrinbMVNNM6qUhjDS8Ayf0pyobLMA6wHp rEzS5vPq7faeJMINDxn2XwhJyEkGhTOfdUhw827Bv+sUYFXBlE4W+LIXCl6/xuct KMdyls6U815cKX5NN/fsHp+m7Fg== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 3vh98m8hrr-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 09 Jan 2024 19:38:07 +0000 (GMT) Received: from nasanex01b.na.qualcomm.com (nasanex01b.na.qualcomm.com [10.46.141.250]) by NASANPPMTA01.qualcomm.com (8.17.1.5/8.17.1.5) with ESMTPS id 409Jc6SY003533 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 9 Jan 2024 19:38:06 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; Tue, 9 Jan 2024 11:38:05 -0800 From: Elliot Berman Date: Tue, 9 Jan 2024 11:38:04 -0800 Subject: [PATCH v16 26/34] mm/interval_tree: Export iter_first/iter_next MIME-Version: 1.0 Message-ID: <20240109-gunyah-v16-26-634904bf4ce9@quicinc.com> References: <20240109-gunyah-v16-0-634904bf4ce9@quicinc.com> In-Reply-To: <20240109-gunyah-v16-0-634904bf4ce9@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.13-dev 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-ORIG-GUID: PfQLvqRZVKjSZRqkcN_pgu1hNdjTZdHL X-Proofpoint-GUID: PfQLvqRZVKjSZRqkcN_pgu1hNdjTZdHL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.997,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-12-09_02,2023-12-07_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 lowpriorityscore=0 impostorscore=0 spamscore=0 mlxscore=0 priorityscore=1501 phishscore=0 malwarescore=0 mlxlogscore=819 suspectscore=0 clxscore=1015 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2311290000 definitions=main-2401090158 X-Rspamd-Queue-Id: 5CCD51C0016 X-Rspam-User: X-Stat-Signature: ygzgyyuoihqmr413y6z9xk56z6xpdrsr X-Rspamd-Server: rspam01 X-HE-Tag: 1704829095-10268 X-HE-Meta: U2FsdGVkX1+4SqsqlB1eCkHRo9XSe7lsv7eOWr8pOSXselnjiPJQ1CmgCdxgPvvWhzc+DYr/NmXf4qVvMw3dlgBDddpNYunsBomjU8OWR/CgGrIfPkm1TiqAJMAlk2rQOO4R22Ci75UAc4ljoetNUMEl09ehf+oQItZZxsK/dtqyhkTQk+xAwHs3W3VX2IRqUDb73FxTM0QRKIRPcmHl1KRl4oSOAChz4ftL7RzdVT+Cf3W2mNBg2HyuMfDwyUlpqS2VeHxk/66yCJmvR87jdrFy835bVjskQ8K9F9qiih5SwuT8GtWWKHaUf0glB4uw3Hp8vRt1A6hvc+o/MMWT1/d3i+KquLTfRnArX5r/ko+IdUBciJIGIuqZC2sAWfM9cobrBCpr4a4SyMrY5Eckg/u2S84fAbOKjiHxjaxjN4tm5xSc1n6sNkvIaedsdNw+ICSnIoW13rMVHOeuuz/zs78R5vwAZ4rpE5rt9UNdD8VtsUwQHcUwJjAUqjH0FNaQEv/wFC9KAfRyC1zQDNOilnSgjPHSM+/npsMM7wx0HfnEPciyFM/4BjMJd9aYC2yoAOwVN3aqfM+//joVsCIczK5fxgnk9AskiEN1D73m8SX5L5HdpQo9a57Nv12VMWyVi2zEQ/4BZ/G9V3cFxNlHutMbog7Hx7WEKNlWZXHHtKw/TANZt88tU4GRbCZNvSGaPpvq/06vxjhJGfgfH0OtoX1DxQ5Ov1vKRDEVfC0F0LF7NnjLc6OoDnV3Jl8njJcPrVUoSn1PjRLVGQV1LKKSO9q/kZE3LXFeaNKXkMRmLvb/3CroJVXSbzpY7yamp+C+8P35YKhz616hJLNJXem2SNW7+QzOnnu195/8gd/4zfRhIHHLt5zUTm93EtQLLBmE+SoO9RdRYTVCkPqJhL4lPeXnjtVwjy6Oxo8lmFwdlzL8rEB2aNbrrDB/PiqU/NsBcvig8jJhp486XK+gt2+ ptdIb1x3 94qmCkL+ZFBRlt3WkQF22eW5nBFvBQvS1kxUo 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 32e390c42c53..faa50767496c 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,