Message ID | 20210817154651.1570984-28-Liam.Howlett@oracle.com (mailing list archive) |
---|---|
State | New |
Headers | show
Return-Path: <SRS0=Mz2w=NI=kvack.org=owner-linux-mm@kernel.org> X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BD298C4338F for <linux-mm@archiver.kernel.org>; Tue, 17 Aug 2021 15:48:04 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 6C71160FD7 for <linux-mm@archiver.kernel.org>; Tue, 17 Aug 2021 15:48:04 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6C71160FD7 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=oracle.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kvack.org Received: by kanga.kvack.org (Postfix) id 2B9D76B0085; Tue, 17 Aug 2021 11:47:38 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 269C88D0001; Tue, 17 Aug 2021 11:47:38 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 0E2606B0088; Tue, 17 Aug 2021 11:47:38 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0061.hostedemail.com [216.40.44.61]) by kanga.kvack.org (Postfix) with ESMTP id E0E356B0085 for <linux-mm@kvack.org>; Tue, 17 Aug 2021 11:47:37 -0400 (EDT) Received: from smtpin24.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 7F2361842386D for <linux-mm@kvack.org>; Tue, 17 Aug 2021 15:47:37 +0000 (UTC) X-FDA: 78485002554.24.4162087 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by imf18.hostedemail.com (Postfix) with ESMTP id E13284002092 for <linux-mm@kvack.org>; Tue, 17 Aug 2021 15:47:36 +0000 (UTC) Received: from pps.filterd (m0246627.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 17HFkDao023520; Tue, 17 Aug 2021 15:47:25 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=ndg2sKP2AOIELkHa2kQyACpbHcjdX1B3bpJlzc6m8Sc=; b=P3DHvFAUcDVV9L6rv4pQJi0pgE5YPGhtZPD48ZYTpadf3M37iTYI2Wm1p81WqTunV+ko aE/OgBkA9tMyU/z8gLdJsbJQAKwVsMAO51YIty9QFxiedJiHbIMqWJl6w/1RmsYzULpc Mh1dwGiUeSyENrtRm1nvvUCpJ/q6Hw6tuS4hr2cQnra4JDA9AE8u3Z9do+Lnr2kEvRMp zxb3Aa6dUmzrg3xpE6kPaWyItyPv/se6T70WtHSiTXKI/FJUHk4yrmVHRDwkMTbUAjbJ eJv8Z+/1NKbh1xHynZQIeBuRvxMElWXaxQvVo76rpyQUAoNTLAIsLKKoKoJksGy2tVi/ pA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2020-01-29; bh=ndg2sKP2AOIELkHa2kQyACpbHcjdX1B3bpJlzc6m8Sc=; b=EO0gtfqRRkDnOBlqyA7llfBDyaOF5GJenZM+cldAUF6aPUmFAeebRP5e251aChg4WW5w JbU6BokR+fUjBHTpxgcGcqKXiAApboK4FWdfUgyFamXAn6vs2MXN45HboadvJ3iugbZW lmf86Lcb+4BgpdIs92d+MXo5ZFX32NgsNaSbTE2FcRmgP1LGenPEbDE2mzJM7my5CgwS DYf0+XIbG+4kPvor/PcQXP1du6VywxLi4FjhnZ6KBeINB6RO/UA9W8dmq3BYgPA1fIHd AwQPXIT3v1eu7TKkXO7/c7pxwAPW2Z5hO++5btbbKTGf4qQcjEOOc6ahC/Fh+4bnYRIy lw== Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by mx0b-00069f02.pphosted.com with ESMTP id 3afdbd4kcm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Aug 2021 15:47:25 +0000 Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 17HFksn1094410; Tue, 17 Aug 2021 15:47:24 GMT Received: from nam12-mw2-obe.outbound.protection.outlook.com (mail-mw2nam12lp2047.outbound.protection.outlook.com [104.47.66.47]) by aserp3030.oracle.com with ESMTP id 3ae3vftdg6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 17 Aug 2021 15:47:23 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BnO2JR//pLrb4SF/DWQkndNu8oSJt/SAv8yoaZUO2qBSDt7ndKZIcLM/stUJXS9st5mIdUe/Ojx4C6Qx2BV5FAZfq1WAsOn25pZNKc7n/Xa5zXhRVDlnl89mBJJb3o7SpqGPDUQLASZuu84WUmMXmBgeNYgS22Fe08bnO4b5VuqUGwpmmtjpJ0N5QxN7jnpixgx1UwJU+IIrN5Ncoc1iEraHmo/F9OPpK/Z+LJN1OptUaPfpFFloA4rCNXmyfjDeUDyO7SaToP5nM7xR9l/xxM6XNQlSF/IuujCnfF55iHE+Us9IoQf13Doo+fLJZ6f3sNRugrOMdsB6maRVU4uEkg== 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-SenderADCheck; bh=ndg2sKP2AOIELkHa2kQyACpbHcjdX1B3bpJlzc6m8Sc=; b=NOgLoADzl0a02Exaavuo2sKDBf7L3xgbisolbTgYSfhW5vtf8HV08MC/lyTXkcQdcdeRK8r3OuiK/BXd1no5fTKDOoXEKjWBSHpMhQcR1wAgnPowAfA2snut6SVZfxaG5wpg0+6pNc7/aR+/qstsrjpqiehCeBfU45YcSsIl6sXyG9CAwnc7RjNCBp3nHhPutuLxO4+DHJl/95F8Op7PuCXoGYheb8+HyYEvgqrqywIKODzOtMo4kMQ4NgNf1arwHhidBHvS2UUrDjP5xOBSRxNc8n9kl7t0O0V7w6OgR34DWArTCRd37f04N4Y7y0/WUPod+en32fKS1dL46ce3og== 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=ndg2sKP2AOIELkHa2kQyACpbHcjdX1B3bpJlzc6m8Sc=; b=DsdPOohIxY40RyPlkMcOYQeFEmqWJxt+hRDnNu3lyZDA3yKrvcPDexzwLvn/SVEkcm7ulTuotouVJ7Wh0h8GX/YiEhf7s4F5eTuzzlOjnaEM4Pmu/+eelH3L6VzAxBUW5r3RrQDAocAnn96dcQP6BoCEECfUi/aROGdecllMZHw= Received: from DM6PR10MB4380.namprd10.prod.outlook.com (2603:10b6:5:223::19) by DM6PR10MB4236.namprd10.prod.outlook.com (2603:10b6:5:212::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4415.17; Tue, 17 Aug 2021 15:47:20 +0000 Received: from DM6PR10MB4380.namprd10.prod.outlook.com ([fe80::585:1aa0:6582:92f3]) by DM6PR10MB4380.namprd10.prod.outlook.com ([fe80::585:1aa0:6582:92f3%6]) with mapi id 15.20.4415.024; Tue, 17 Aug 2021 15:47:20 +0000 From: Liam Howlett <liam.howlett@oracle.com> To: "maple-tree@lists.infradead.org" <maple-tree@lists.infradead.org>, "linux-mm@kvack.org" <linux-mm@kvack.org>, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Andrew Morton <akpm@linux-foundation.org> CC: Song Liu <songliubraving@fb.com>, Davidlohr Bueso <dave@stgolabs.net>, "Paul E . McKenney" <paulmck@kernel.org>, Matthew Wilcox <willy@infradead.org>, Laurent Dufour <ldufour@linux.ibm.com>, David Rientjes <rientjes@google.com>, Axel Rasmussen <axelrasmussen@google.com>, Suren Baghdasaryan <surenb@google.com>, Vlastimil Babka <vbabka@suse.cz>, Rik van Riel <riel@surriel.com>, Peter Zijlstra <peterz@infradead.org>, Michel Lespinasse <walken.cr@gmail.com>, Liam Howlett <liam.howlett@oracle.com> Subject: [PATCH v2 27/61] arch/powerpc: Remove mmap linked list from mm/book3s64/subpage_prot Thread-Topic: [PATCH v2 27/61] arch/powerpc: Remove mmap linked list from mm/book3s64/subpage_prot Thread-Index: AQHXk38pONqp6/PwmU63yGn8MkKKdw== Date: Tue, 17 Aug 2021 15:47:20 +0000 Message-ID: <20210817154651.1570984-28-Liam.Howlett@oracle.com> References: <20210817154651.1570984-1-Liam.Howlett@oracle.com> In-Reply-To: <20210817154651.1570984-1-Liam.Howlett@oracle.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 2.30.2 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 8e4fa3f3-f34b-4fab-de7d-08d961964c6d x-ms-traffictypediagnostic: DM6PR10MB4236: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: <DM6PR10MB4236281E2489CFC524E1756EFDFE9@DM6PR10MB4236.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:5236; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: H81ryZU1aY5dRRNrI+5VmgFEt2p4zkMKRQHRpc6Rtl1nS04rOtK1VucZxrpUH2STM40IrPjZ7IwTzqGZle/SbDffmrE+mSbFNpZgNTj7dqc9/yxxoX3OEMDU5vAq7nnh2DPZgPlwLI/rqEz5Kay/kIFhtLCi9YEp7ZsLkV8Rz8qajL/YZLw7rmPWmr5qxte2vipAHZwtQwJ6jCiyxu8YKCUI7ldhQMQ8S0U2VPXlypCTRLJ8k/vQ/q5PI9VGVnI3vAPJHSRTYMdaC8NkQbxqExTaNhsAByqGf6SkKMQYxoMA2AK5c7QnB7KvQsAaP6lduz4VNHim37bSruCIEC4DkWbDSPFU2N6z8V5hEr5cs6bV0L2x9i2CdsvX/4xWjKQ7STgr1EqK7JlL0SebDECa4SsbepCrIrk8U8EolU82REPIE6hYtxfGDj+7ZKryY8ir1SEYGP6HOD1gAHEpANUkPvo+2O24Fd7+CWvVEoq9fqmb92B5p/VCB/CWxsMiki5XeVtJWcOgMWH6eweXCW7BINlmJ1SaNW9SZJ2BQm8ccmMKRS5z4UV27lGjCT0x2JAMysYQkgPEfQzX4otWgy8L06DFXvvhWkqp3O6prqIlaOz4+vR8XVKQ7raLbt1gNsoiX2VpHO0WJxi9pYdGmAlkoibOzHpXmVSkbgEG2+9jnoaIqltOk1SY/LNm4MomA9VgGqnSf/s0VzsNq3GT9Z5E3A== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4380.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(136003)(396003)(366004)(376002)(346002)(39860400002)(54906003)(110136005)(1076003)(5660300002)(38070700005)(6486002)(36756003)(38100700002)(478600001)(83380400001)(2616005)(4326008)(91956017)(76116006)(6512007)(122000001)(316002)(44832011)(6506007)(66946007)(2906002)(7416002)(107886003)(66446008)(66556008)(86362001)(64756008)(66476007)(8676002)(26005)(71200400001)(8936002)(186003);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?iAOcErcQ8gweuc9MFa/Glem?= =?iso-8859-1?q?vQ6v1RSuSZ5MrfMyuWKi5J3WFTqazDK/RqEZiLVNd1NKB0a0RSlSaEuzrzxT?= =?iso-8859-1?q?PzF4Loy+mwsL0CLEyhRoZtGpmxe4iVqlg8/P1VdgHRs6sidKS3aMkjDxEXMj?= =?iso-8859-1?q?yUFdGddtN7tMoFV74WSlvrvd1GQLkaRekcAYgKGGN5sa4dakkwSfD7VSO0s+?= =?iso-8859-1?q?YyWA7vEtAUMurvTrp1BPH/1ddShHL4pC1DOKtKInEP40cKgjgK0A5MVsHpQ/?= =?iso-8859-1?q?B6gSnAzEmaJeha7tgDMezeDXArfZ4b8efiImx5tZp6OJeo08KwBsinCfqF2f?= =?iso-8859-1?q?EKHjpwAMxFx34DgAxboMALKhqf3BE61gIOAxzBVrsSgNOrkgECfQRPhf1d3r?= =?iso-8859-1?q?aXZF37o5j6yBPRPQSnFKUx3IDg/3FMS0EPVUzJ87LcyWtBv2kpOlZqEhHiFB?= =?iso-8859-1?q?kPKC+vf4Z+JIo+lQ+bngpNkeMK6RU5S9V0gwcKtq6fOeV8UVs6phVibEjJhm?= =?iso-8859-1?q?Lb14i5CshfxA3I2r6djPTFGHB9+fyNZrEvtZMeXQWnof15lxiQpsAjP45V/e?= =?iso-8859-1?q?84vllpnHLKDQ4So33DZ0HMsNf4QoQ+vrUqnxiD91Despjo75gPoCzmonVEIm?= =?iso-8859-1?q?p1qVISo6ZfaU02o/UIBmP6+T+pKiM8Jq4h8Cbj3m3GYxi5hExIueoAwOwRQz?= =?iso-8859-1?q?q5yhzsUrUfFo39kEBfOS0HnXO74AwLAbJA879nsVA+DTQtZNpobudoFdmmgh?= =?iso-8859-1?q?sCBsNe+u2fROAr2/jF+cKcvXWyyoJ1hkhGHHcirV9rMC957HafkJO5pzFIH+?= =?iso-8859-1?q?DTkRZYReSUk/QRfgomxRkp0pljoAdgJs+Cl2d9K1e/VEvgSgTJYSVjToEPJk?= =?iso-8859-1?q?xuilvMdt5ecti+uGkN+CG9i3Eo+Ve1HUiOQG/lnEhLzx1n5Ow9y3P5ctQZWA?= =?iso-8859-1?q?ZHjpt3y1jLt67zarIiPGPH9dQlrGwKKl6PicrNdq8+TOmJl0GdTSLq69Y1HR?= =?iso-8859-1?q?CRfQ7TIfTKgHCmWEbCv3a9OeCSMnnx4RaXM46snqd1uIy8Lmyw9ea0cQzYEr?= =?iso-8859-1?q?Z7KQonf68AA3f07xJLhAX/z67SVelSFEwqMFpvonr4XDgX4YlTMHz0v3xwg8?= =?iso-8859-1?q?n/QbVp14ovhy0jxwm1/+SLk6WBjUokjtXQxOBoMtnWSSse1a2Tmk3Nan/Rma?= =?iso-8859-1?q?30MqM1wZlfqM1/UqsCk9ISEVqv0ELDqEImjDgqXq5uE21FKNLb1R3mu69YlX?= =?iso-8859-1?q?0lrWl4AXs8ICNqDiULNvA9hhkJEhalkm5/YUJ5uWLfOEGq9p7lJvX6OJ3jGS?= =?iso-8859-1?q?Tq3bh1QCFv4isHXVK4u0zfezuOmnq5B2qOkag3SVaMqYCAA+RhpQrPo84DgV?= =?iso-8859-1?q?f?= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4380.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8e4fa3f3-f34b-4fab-de7d-08d961964c6d X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2021 15:47:20.3698 (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: cStrgS2sdeIeS26/eiwIUlteuu0HRzlEcnX5h6C6Rvp6Fa8zhEnnj+LmiYbydeM+L+HOwFgV2Pcr7Vabv3UCQA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR10MB4236 X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=10079 signatures=668682 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxscore=0 malwarescore=0 mlxlogscore=999 spamscore=0 bulkscore=0 phishscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2107140000 definitions=main-2108170097 X-Proofpoint-ORIG-GUID: e7ZinSjnXlsL7jADfsUdR3BT84W3O5Fw X-Proofpoint-GUID: e7ZinSjnXlsL7jADfsUdR3BT84W3O5Fw Authentication-Results: imf18.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=P3DHvFAU; dkim=pass header.d=oracle.com header.s=corp-2020-01-29 header.b=EO0gtfqR; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=DsdPOohI; spf=none (imf18.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 205.220.165.32) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com X-Rspamd-Server: rspam06 X-Rspamd-Queue-Id: E13284002092 X-Stat-Signature: ikq6poj89dz53aa6oawjscaymcx6biqk X-HE-Tag: 1629215256-965333 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 |
Introducing the Maple Tree
|
expand
|
diff --git a/arch/powerpc/mm/book3s64/subpage_prot.c b/arch/powerpc/mm/book3s64/subpage_prot.c index 60c6ea16a972..51722199408e 100644 --- a/arch/powerpc/mm/book3s64/subpage_prot.c +++ b/arch/powerpc/mm/book3s64/subpage_prot.c @@ -149,25 +149,18 @@ static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr, unsigned long len) { struct vm_area_struct *vma; + MA_STATE(mas, &mm->mm_mt, addr, addr); /* * We don't try too hard, we just mark all the vma in that range * VM_NOHUGEPAGE and split them. */ - vma = find_vma(mm, addr); - /* - * If the range is in unmapped range, just return - */ - if (vma && ((addr + len) <= vma->vm_start)) - return; - - while (vma) { - if (vma->vm_start >= (addr + len)) - break; + rcu_read_lock(); + mas_for_each(&mas, vma, addr + len) { vma->vm_flags |= VM_NOHUGEPAGE; walk_page_vma(vma, &subpage_walk_ops, NULL); - vma = vma->vm_next; } + rcu_read_unlock(); } #else static void subpage_mark_vma_nohuge(struct mm_struct *mm, unsigned long addr,