Message ID | 20220215144241.3812052-63-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 2F959C433EF for <linux-mm@archiver.kernel.org>; Tue, 15 Feb 2022 14:45:02 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id B88D86B00B3; Tue, 15 Feb 2022 09:45:01 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id B0FBA6B00B4; Tue, 15 Feb 2022 09:45:01 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 93AC76B00B5; Tue, 15 Feb 2022 09:45:01 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0140.hostedemail.com [216.40.44.140]) by kanga.kvack.org (Postfix) with ESMTP id 83A206B00B3 for <linux-mm@kvack.org>; Tue, 15 Feb 2022 09:45:01 -0500 (EST) Received: from smtpin28.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay05.hostedemail.com (Postfix) with ESMTP id 426E1181AC9CC for <linux-mm@kvack.org>; Tue, 15 Feb 2022 14:45:01 +0000 (UTC) X-FDA: 79145286402.28.5A5EE9D Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by imf29.hostedemail.com (Postfix) with ESMTP id C49E3120012 for <linux-mm@kvack.org>; Tue, 15 Feb 2022 14:44:37 +0000 (UTC) Received: from pps.filterd (m0246632.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 21FEhimo005586; Tue, 15 Feb 2022 14:44:37 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2021-07-09; bh=E7+dHJtvorNCGjr+UxjNurapE/RZ7+D7tnhddM1AuIs=; b=hzFtpqZZqht9uz86zLMYVW4E+zESsLEDPXIEmlO0WzROc3SAPUGxUL5kHJeyOZlqC1Ro nTtlIQB4z4i0wV7PAqQJvzLL13m469QYOx3xxPFqD+J0QknZX85ruPqT6QOqvWuKsrNs Gnbp4BM+XxinoSNxD8aqXJQ0L1zKttMG5xVtf04LqmZoQB3ljFABrMFM35MgIiqtwK1T 94TAPbTus3qhCUrJ/T7mx0msaR/KaAaZSfshFZ8I39Mmol0W6t6cZw9EXRqy5T1MJUSW LHNe4s2gTqWZ9vwg1ldwV2rkglXWP2TeBhawPdVOpdFEGv9T+wDq/ITFuQo36yI2xypD Tw== Received: from aserp3020.oracle.com (aserp3020.oracle.com [141.146.126.70]) by mx0b-00069f02.pphosted.com with ESMTP id 3e88hgh4jp-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 14:44:36 +0000 Received: from pps.filterd (aserp3020.oracle.com [127.0.0.1]) by aserp3020.oracle.com (8.16.1.2/8.16.1.2) with SMTP id 21FEe5V9157068; Tue, 15 Feb 2022 14:44:36 GMT Received: from nam11-bn8-obe.outbound.protection.outlook.com (mail-bn8nam11lp2169.outbound.protection.outlook.com [104.47.58.169]) by aserp3020.oracle.com with ESMTP id 3e6qkya227-3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 15 Feb 2022 14:44:36 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=VyCZIH1IVH1WjoMDxUGimrKgGPGLr5URkXRssmUTp12uRGI+g308vdG02TGoSKtfzNSzHrXX2Y7dyR9YxlyaCMImFVsNCk/GslAeRC50i65ZaVItyCRoa0y8tXg+ekR3x2v8Dq+9m9offTac/MZORFZdVv2K5Vq7CoxXD7jv9+4l+4OyvDMHNQTUmqtOevLugA426XsTFuF5yG3PeVGLeCj9qb85VWpDGE7vI20vIoTimZ8k3UDWc4UZhcgd95VFrTOzHRqOM0zsy01smMe2hGJnQOEt6XXBAsMuJuzBT5GKF67dqFcPnfUK/o7gk+7Go2i+DvCYtcn6+rA9vwBXMw== 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=E7+dHJtvorNCGjr+UxjNurapE/RZ7+D7tnhddM1AuIs=; b=HW5Uj7SoCSG3svjltmHlZ2Db1G0TdchCh1aTqp9C4UEZ9fP+PElYv+VbxB4p3+SfjNxZFLyKiSVZuUU/woT438rd52KF40VbZeMzrfwQYzUT1T9vrOQWv64yAbfyqVGyraV9PiiSdktsWD/xAm1tau4dikUe/YbhxzwogJdJKj2olo1m2bGBcZWIj609mRrunWUyuuZlCRbwXJ2FGaT9wPN2Bu6gLVJkXy2v1OsjMzwqAsnS2pjglN1J8EDKieZ/waeOW3d/YYWk4fFlgU+GZL0BLsqUwh9J8CYYMGFep8i3fse9HPbl1bTpRV0AnZfXpPh41kGL8IhNEwtSthUQcg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=E7+dHJtvorNCGjr+UxjNurapE/RZ7+D7tnhddM1AuIs=; b=yL+9ij52XNON7KvxNU87FA/yRUSN9dq9OznyWgaJ9+pV2+YOkZfj9kLi38AuKcAYo3fG62gIoZjuIkyGTDKHAClksUpxFua6vJaFfmbat8AtcWXuAEh5J8keQVfXoo6l2jDigsx4JP1YSyi3rdWkN3dtsf6TAKtNVgCUWpolqCI= Received: from SN6PR10MB3022.namprd10.prod.outlook.com (2603:10b6:805:d8::25) by CY4PR10MB1863.namprd10.prod.outlook.com (2603:10b6:903:11e::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4975.15; Tue, 15 Feb 2022 14:44:34 +0000 Received: from SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::899e:951a:8129:8ef1]) by SN6PR10MB3022.namprd10.prod.outlook.com ([fe80::899e:951a:8129:8ef1%4]) with mapi id 15.20.4975.019; Tue, 15 Feb 2022 14:44:34 +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> Subject: [PATCH v6 63/71] mm/oom_kill: Use maple tree iterators instead of vma linked list Thread-Topic: [PATCH v6 63/71] mm/oom_kill: Use maple tree iterators instead of vma linked list Thread-Index: AQHYInpjwjVwr7dFD0O3ujD0LyKI4w== Date: Tue, 15 Feb 2022 14:43:26 +0000 Message-ID: <20220215144241.3812052-63-Liam.Howlett@oracle.com> References: <20220215143728.3810954-1-Liam.Howlett@oracle.com> <20220215144241.3812052-1-Liam.Howlett@oracle.com> In-Reply-To: <20220215144241.3812052-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.34.1 x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: be31c16a-5242-4a72-c9b5-08d9f091aeb6 x-ms-traffictypediagnostic: CY4PR10MB1863:EE_ x-microsoft-antispam-prvs: <CY4PR10MB18639000A7B2046C841E84DBFD349@CY4PR10MB1863.namprd10.prod.outlook.com> x-ms-oob-tlc-oobclassifiers: OLM:208; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: QnMsjszLGiA5ItYha4GcAa9mtWi3Iny21uiGch4BiZxwB09ir8gG02CmM4YXnwAsIlAsZ+iHsnBMSlDEJFyIpuaonWTaRASLJrpU0LaQ9LbKktZK9a1ZaTVnybQifrDmo2UvsAeDj8XhCrIrc1q3xOqmLDvo2EtG3f1/5n9MBwXVsJg8+BhjNycZgburoTKPBlAEVQKoI1HFPXZ7scnxndGon/wVXeXBh6Bc09c2XcRvCVaisTiTP8VPG5GgYzF+w2vgoea1zPB0ZYF0stBkTHA+eX81F/kTfAW/KqBEigORuN1QxkHfm92cztw698LEc6vN7fDGn2elgTb1TNqEqlDwBkCLNqtOimqhXt07kcVNNxYYM5nIwVGIb23oAzSJDf/7HTcaJr86x7w/E/rwyrOd1ZB0UI5WUfBW0ur3YAcKn5r02jl4WYOswkdmMLcpyOv74xaWUvvEXjT3wrgwfYKmAldiUVmr7vcOLUDg7wGHgqUc0oYbnx7vS7Q68nBJCu69lwiW60tVOifZpp6RoagazqZ+VjWjPpQ7X0bOUe8JrYya6XawKckVhqzLucQnOXqNDu/s2KJvb+lzO541k7RS8pqc3FKuhNvt0t6mbe+uU/D+xLyt+SYlLA31gTzHeNoteIivCnwsEbE9aW7CQP8ro+FGtPkpEgXADJrdxgP68g6/+bFItDnszmqM6y8hmNEyAXiRuEWLCKXeVdugTg== 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:(13230001)(366004)(66446008)(86362001)(66556008)(8676002)(64756008)(316002)(2906002)(44832011)(122000001)(66946007)(66476007)(110136005)(38100700002)(76116006)(91956017)(6486002)(83380400001)(1076003)(5660300002)(8936002)(186003)(2616005)(38070700005)(36756003)(71200400001)(26005)(6506007)(508600001)(6512007)(6666004)(4744005);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-8859-1?q?1DOUEH4uacw4N7vdMqjYMQa?= =?iso-8859-1?q?DvNRdh3WDJUf268WEGB4LCP464lnpe49Iqr5bZWm0ZTXvGOaQJCByWjCmz9I?= =?iso-8859-1?q?++SNTVHo1MH/Yq9JypQcuWU+QsCSTkHhM2AzYvLYFWKU3JbH73fLSyXEidQU?= =?iso-8859-1?q?DfVxdLKdGJE7evLW9v4fv7KgAT7o1YpgJYaqZikp1UhNLl4ipweOYWOmK3PZ?= =?iso-8859-1?q?N23jMRKuYRFjdOx0IZ3GJtDlEgrVWu9rbSJ61RaIgQXlyvrZI9+frJijXvPg?= =?iso-8859-1?q?lZ3jZRb6mSnA/j5+umEYc0TNO0BKZ/2c9JozkUwu1Gp+euA39Nq83Ph20dHp?= =?iso-8859-1?q?hEsV0Y+W3rOJmmYGc4XKwsmN5oCZ9f0lOS4zOl5qJz/MnoLdKWuvI+WqVQJ3?= =?iso-8859-1?q?VHflHdMbizjBCD+TiCBysySwuvbxUpnBZTasHn8sWR56+OJNtlY25LF+WJzx?= =?iso-8859-1?q?RrXKdfljSEr2B4x3nKVyeavpAGBvy5ha4ny+r4NzfPgc5x08h2+v4+DS/RJX?= =?iso-8859-1?q?yEZ69Oq32T6ANkQiWciDPzt4+lUhxCUDwsGTB62DN1Xwl9EeGnjPN/2AtA4x?= =?iso-8859-1?q?rE1ytw7b7S8GeUV/7GqU1adoBETbu8z46WDuqVkbjeOop1fOaZCmvFOzGTdC?= =?iso-8859-1?q?d6c+oYsToMAn2nzwWXsS8bx2Aup+CZHLUTa4XBNxD3A1oUNPjN+0e+fp7as/?= =?iso-8859-1?q?Yqglj7JtVv5Nt+LLbqfR00gxFRKYDfGwgvxzPaQ+05x0diKg4OldvjdSevHl?= =?iso-8859-1?q?kjtEAT6SeHBY2iY8T+nJj62BT4UttU0IW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cuWqlgz4?= =?iso-8859-1?q?=3D?= 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: SN6PR10MB3022.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: be31c16a-5242-4a72-c9b5-08d9f091aeb6 X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Feb 2022 14:43:26.5726 (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: SBYqAs/lS1V9yh3yfZ8KFBmKgav0hHEw5LYpBUyDCS7RUTJTL5Qw8i3Qm7gl+MMDvm0IQoDOPgpTe38SWeQ7+w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR10MB1863 X-Proofpoint-Virus-Version: vendor=nai engine=6300 definitions=10258 signatures=673431 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 bulkscore=0 suspectscore=0 phishscore=0 malwarescore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2201110000 definitions=main-2202150085 X-Proofpoint-GUID: TX5B71_0GJyfGzMxCkpuu4zFnvNbZzjN X-Proofpoint-ORIG-GUID: TX5B71_0GJyfGzMxCkpuu4zFnvNbZzjN X-Rspamd-Server: rspam12 X-Rspamd-Queue-Id: C49E3120012 X-Stat-Signature: ofrbc9re7jjy83gqpejzfgu6md8om1hd X-Rspam-User: Authentication-Results: imf29.hostedemail.com; dkim=pass header.d=oracle.com header.s=corp-2021-07-09 header.b=hzFtpqZZ; dkim=pass header.d=oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=yL+9ij52; spf=none (imf29.hostedemail.com: domain of liam.howlett@oracle.com has no SPF policy when checking 205.220.177.32) smtp.mailfrom=liam.howlett@oracle.com; dmarc=pass (policy=none) header.from=oracle.com X-HE-Tag: 1644936277-861181 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/mm/oom_kill.c b/mm/oom_kill.c index 832fb330376e..9cbc05fa356c 100644 --- a/mm/oom_kill.c +++ b/mm/oom_kill.c @@ -516,6 +516,7 @@ bool __oom_reap_task_mm(struct mm_struct *mm) { struct vm_area_struct *vma; bool ret = true; + VMA_ITERATOR(vmi, mm, 0); /* * Tell all users of get_user/copy_from_user etc... that the content @@ -525,7 +526,7 @@ bool __oom_reap_task_mm(struct mm_struct *mm) */ set_bit(MMF_UNSTABLE, &mm->flags); - for (vma = mm->mmap ; vma; vma = vma->vm_next) { + for_each_vma(vmi, vma) { if (!can_madv_lru_vma(vma)) continue;